ISecurableObject.CheckPermissions Method
NOTE: This API is now obsolete.
Checks the permissions for a given set of rights.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use the SPSecurableObject class instead")> _
Sub CheckPermissions ( _
permissionMask As SPBasePermissions _
)
'Usage
Dim instance As ISecurableObject
Dim permissionMask As SPBasePermissions
instance.CheckPermissions(permissionMask)
[ObsoleteAttribute("Use the SPSecurableObject class instead")]
void CheckPermissions(
SPBasePermissions permissionMask
)
Parameters
permissionMask
Type: Microsoft.SharePoint.SPBasePermissionsAn SPBasePermissions value that specifies a set of rights to check.
Remarks
The CheckPermissions method returns an "access denied" error if it fails.