Partilhar via


AudienceCollection.AudienceExist Method (String)

Checks for the existence of an Audience object with the specified name.

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function AudienceExist ( _
    AudienceName As String _
) As Boolean
'Usage
Dim instance As AudienceCollection
Dim AudienceName As String
Dim returnValue As Boolean

returnValue = instance.AudienceExist(AudienceName)
public bool AudienceExist(
    string AudienceName
)

Parameters

Return Value

Type: System.Boolean
true if the audience exists; otherwise, false.

See Also

Reference

AudienceCollection Class

AudienceCollection Members

AudienceExist Overload

Microsoft.Office.Server.Audience Namespace