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)
Available in Sandboxed Solutions: No
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
permissionMask
Type: Microsoft.SharePoint.SPRightsAn SPRights value that specifies the rights.