DoesUserHavePermissions Method
Collapse the table of content
Expand the table of content

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

public virtual bool DoesUserHavePermissions(
	SPBasePermissions permissionMask
)

Parameters

permissionMask
Type: Microsoft.SharePoint.SPBasePermissions

A 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)
Show:
© 2016 Microsoft