This topic has not yet been rated - Rate this topic

SPSecurableObject.DoesUserHavePermissions Method

SharePoint 2010

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)
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ