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
)
参数
permissionMask
类型:Microsoft.SharePoint.SPBasePermissionsA bitwise combination of enumeration values that specifies a set of permissions.
返回值
类型:System.Boolean
true if the current user has the specified permissions; otherwise, false.
实现
ISecurableObject.DoesUserHavePermissions(SPBasePermissions)