AudienceManager.IsMemberOfAudience Method (String, String)
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, _
AudienceName As String _
) As Boolean
'Usage
Dim instance As AudienceManager
Dim AccountNameOrg As String
Dim AudienceName As String
Dim returnValue As Boolean
returnValue = instance.IsMemberOfAudience(AccountNameOrg, _
AudienceName)
public bool IsMemberOfAudience(
string AccountNameOrg,
string AudienceName
)
Parameters
- AccountNameOrg
Type: System.String
The account name of the user.
- AudienceName
Type: System.String
The GUID of the audience.
Return Value
Type: System.Boolean
true if the specified user is a member of the specified audience; otherwise, false.