Export (0) Print
Expand All

SPSite.CheckForPermissions method

Checks the permissions for a given set of rights and throws an Unauthorized Access exception if the permission check fails.

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

public void CheckForPermissions(
	SPReusableAcl acl,
	SPBasePermissions permissionMask
)

Parameters

acl
Type: Microsoft.SharePoint.SPReusableAcl

An SPReusableAcl object that represents the reusable access control list of the site collection.

permissionMask
Type: Microsoft.SharePoint.SPBasePermissions

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

Show:
© 2014 Microsoft