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.StringThe account name of the user.
AudienceGuid
Type: System.GuidThe 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.