This documentation is archived and is not being maintained.

SPListItem.CheckPermissions Method

Windows SharePoint Services 3

Determines whether the current user has the specified set of rights, and if not, throws UnauthorizedAccessException.

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

public void CheckPermissions(
	SPBasePermissions permissionMask
)

Parameters

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

Implements

ISecurableObject.CheckPermissions(SPBasePermissions)
Show: