Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets whether the current user is a member of the specified group.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function IsCurrentUserMemberOfGroup ( _
groupId As Integer _
) As Boolean
'Usage
Dim instance As SPWeb
Dim groupId As Integer
Dim returnValue As Boolean
returnValue = instance.IsCurrentUserMemberOfGroup(groupId)
public bool IsCurrentUserMemberOfGroup(
int groupId
)
Parameters
groupId
Type: System.Int32The group identifier (ID).
Return Value
Type: System.Boolean
true if the user is a member of the group; otherwise, false.