共用方式為


Audience.IsMember Method

Determines whether a user is a member of this audience.

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Function IsMember ( _
    AccountNameOrg As String _
) As Boolean
'Usage
Dim instance As Audience
Dim AccountNameOrg As String
Dim returnValue As Boolean

returnValue = instance.IsMember(AccountNameOrg)
public bool IsMember(
    string AccountNameOrg
)

Parameters

  • AccountNameOrg
    Type: System.String

    The account name of the user.

Return Value

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

See Also

Reference

Audience Class

Audience Members

Microsoft.Office.Server.Audience Namespace