Condividi tramite


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.String

    The account name of the user.

Return Value

Type: System.Boolean
true if the specified user is a member of the specified audience; otherwise, false.

See Also

Reference

AudienceManager Class

AudienceManager Members

IsMemberOfAudience Overload

Microsoft.Office.Server.Audience Namespace