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 (in Microsoft.Office.Server.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.