Share via


AudienceLoader.IsUserMemberOfSharePointGroup Method

Determines whether the current user is a member of the specified SharePoint group.

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

Syntax

'Declaration
Public Function IsUserMemberOfSharePointGroup ( _
    groupDisplayName As String _
) As Boolean
'Usage
Dim instance As AudienceLoader
Dim groupDisplayName As String
Dim returnValue As Boolean

returnValue = instance.IsUserMemberOfSharePointGroup(groupDisplayName)
public bool IsUserMemberOfSharePointGroup(
    string groupDisplayName
)

Parameters

  • groupDisplayName
    Type: System.String

    The String object represents the display name of the SharePoint group.

Return Value

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

Remarks

This method determines whether the current user is a member of the specified SharePoint group.

See Also

Reference

AudienceLoader Class

AudienceLoader Members

Microsoft.Office.Server.WebControls Namespace