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)

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.
Show: