Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates whether the current user has a specified set of permissions.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Overridable Function DoesUserHavePermissions ( _
permissionMask As SPBasePermissions _
) As Boolean
'Usage
Dim instance As SPSecurableObject
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean
returnValue = instance.DoesUserHavePermissions(permissionMask)
public virtual bool DoesUserHavePermissions(
SPBasePermissions permissionMask
)
permissionMask
Type: Microsoft.SharePoint.SPBasePermissions
A bitwise combination of enumeration values that specifies a set of permissions.
Type: System.Boolean
true if the current user has the specified permissions; otherwise, false.
ISecurableObject.DoesUserHavePermissions(SPBasePermissions)
Please sign in to use this experience.
Sign in