Share via


SPPermissionCollection.CheckPermissions method

NOTE: This API is now obsolete.

Verifies whether the current user has the specified permissions for the list or site and, if not, throws an Access Denied exception.

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

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleAssignmentCollection class instead")> _
Public Sub CheckPermissions ( _
    permissionMask As SPRights _
)
'Usage
Dim instance As SPPermissionCollection
Dim permissionMask As SPRights

instance.CheckPermissions(permissionMask)
[ObsoleteAttribute("Use the SPRoleAssignmentCollection class instead")]
public void CheckPermissions(
    SPRights permissionMask
)

Parameters

See also

Reference

SPPermissionCollection class

SPPermissionCollection members

Microsoft.SharePoint namespace