SPSite.DoesUserHavePermissions 方法 (SPReusableAcl, SPBasePermissions)
Returns a Boolean value indicates whether the user has permissions for the specified set of rights.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function DoesUserHavePermissions ( _
acl As SPReusableAcl, _
permissionMask As SPBasePermissions _
) As Boolean
用法
Dim instance As SPSite
Dim acl As SPReusableAcl
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean
returnValue = instance.DoesUserHavePermissions(acl, _
permissionMask)
public bool DoesUserHavePermissions(
SPReusableAcl acl,
SPBasePermissions permissionMask
)
参数
acl
类型:Microsoft.SharePoint.SPReusableAclAn SPReusableAcl object that represents an access control list.
permissionMask
类型:Microsoft.SharePoint.SPBasePermissionsAn SPBasePermissions value that specifies base permissions for the site collection.
返回值
类型:System.Boolean
true if the user has permissions for the specified set of rights; otherwise, false.