SPWeb.IsCurrentUserMemberOfGroup 方法

Gets whether the current user is a member of the specified group.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function IsCurrentUserMemberOfGroup ( _
    groupId As Integer _
) As Boolean
用法
Dim instance As SPWeb
Dim groupId As Integer
Dim returnValue As Boolean

returnValue = instance.IsCurrentUserMemberOfGroup(groupId)
public bool IsCurrentUserMemberOfGroup(
    int groupId
)

参数

返回值

类型:System.Boolean
true if the user is a member of the group; otherwise, false.

另请参阅

引用

SPWeb 类

SPWeb 成员

Microsoft.SharePoint 命名空间