Partilhar via


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