AudienceCollection.AudienceExist method (Guid)

Indicates whether the audience with the specified globally unique identifier (GUID) exists for the current site.

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

Syntax

'Declaration
Public Function AudienceExist ( _
    AudienceID As Guid _
) As Boolean
'Usage
Dim instance As AudienceCollection
Dim AudienceID As Guid
Dim returnValue As Boolean

returnValue = instance.AudienceExist(AudienceID)
public bool AudienceExist(
    Guid AudienceID
)

Parameters

  • AudienceID
    Type: System.Guid

    The GUID for an audience.

Return value

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

See also

Reference

AudienceCollection class

AudienceCollection members

AudienceExist overload

Microsoft.Office.Server.Audience namespace