DoesUserHavePermissions Method (SPBasePermissions)

SPWeb.DoesUserHavePermissions Method (SPBasePermissions)

Windows SharePoint Services 3

Checks permissions of the current user for a specified set of rights and returns a Boolean value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public bool DoesUserHavePermissions(
	SPBasePermissions permissionMask
)

Parameters

permissionMask
Type: Microsoft.SharePoint.SPBasePermissions
An SPBasePermissions value that specifies the rights.

Return Value

Type: System.Boolean
true if the user has the specified rights; otherwise, false.

Implements

ISecurableObject.DoesUserHavePermissions(SPBasePermissions)
Show:
© 2016 Microsoft