SPSecurableObject.DoesUserHavePermissions Method
Indicates whether the current user has a specified set of permissions.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'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
)
Parameters
permissionMask
Type: Microsoft.SharePoint.SPBasePermissionsA bitwise combination of enumeration values that specifies a set of permissions.
Return Value
Type: System.Boolean
true if the current user has the specified permissions; otherwise, false.
Implements
ISecurableObject.DoesUserHavePermissions(SPBasePermissions)