Partilhar via


AudienceManager.IsMemberOfAudience Method (String, Guid)

Determines whether a user is a member of a specified audience.

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

Syntax

'Declaration
Public Function IsMemberOfAudience ( _
    AccountNameOrg As String, _
    AudienceGuid As Guid _
) As Boolean
'Usage
Dim instance As AudienceManager
Dim AccountNameOrg As String
Dim AudienceGuid As Guid
Dim returnValue As Boolean

returnValue = instance.IsMemberOfAudience(AccountNameOrg, _
    AudienceGuid)
public bool IsMemberOfAudience(
    string AccountNameOrg,
    Guid AudienceGuid
)

Parameters

  • AccountNameOrg
    Type: System.String

    The account name of the user.

  • AudienceGuid
    Type: System.Guid

    The globally unique identifier of the audience.

Return Value

Type: System.Boolean
true if the specified user is a member of the specified audience; otherwise, false.

See Also

Reference

AudienceManager Class

AudienceManager Members

IsMemberOfAudience Overload

Microsoft.Office.Server.Audience Namespace