SPSite.DoesUserHavePermissions method (SPReusableAcl, SPBasePermissions)
Returns a Boolean value indicates whether the user has permissions for the specified set of rights.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: Microsoft.SharePoint.SPReusableAclAn SPReusableAcl object that represents an access control list.
permissionMask
Type: Microsoft.SharePoint.SPBasePermissionsAn SPBasePermissions value that specifies base permissions for the site collection.
傳回值
Type: System.Boolean
true if the user has permissions for the specified set of rights; otherwise, false.