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.UserProfiles (in Microsoft.Office.Server.UserProfiles.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.StringThe account name of the user.
AudienceName
Type: System.StringThe GUID of the audience.
Return Value
Type: System.Boolean
true if the specified user is a member of the specified audience; otherwise, false.