Export (0) Print
Expand All

SPSite.DoesUserHavePermissions method (SPReusableAcl, SPBasePermissions)

Returns a Boolean value indicates whether the user has permissions for the specified set of rights.

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

public bool DoesUserHavePermissions(
	SPReusableAcl acl,
	SPBasePermissions permissionMask
)

Parameters

acl
Type: Microsoft.SharePoint.SPReusableAcl

An SPReusableAcl object that represents an access control list.

permissionMask
Type: Microsoft.SharePoint.SPBasePermissions

An SPBasePermissions value that specifies base permissions for the site collection.

Return value

Type: System.Boolean
true if the user has permissions for the specified set of rights; otherwise, false.
Show:
© 2014 Microsoft