SPSecurableObject.DoesUserHavePermissions 方法

Indicates whether the current user has a specified set of permissions.

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

语法

声明
Public Overridable Function DoesUserHavePermissions ( _
    permissionMask As SPBasePermissions _
) As Boolean
用法
Dim instance As SPSecurableObject
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissionMask)
public virtual bool DoesUserHavePermissions(
    SPBasePermissions permissionMask
)

参数

返回值

类型:System.Boolean
true if the current user has the specified permissions; otherwise, false.

实现

ISecurableObject.DoesUserHavePermissions(SPBasePermissions)

另请参阅

引用

SPSecurableObject 类

SPSecurableObject 成员

Microsoft.SharePoint 命名空间

CheckPermissions(SPBasePermissions)