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
AudienceName
Type: System.StringThe name for an audience.
Return Value
Type: System.Boolean
true if the audience exists; otherwise, false.