共用方式為


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

Remarks

The CheckPermissions method returns an "access denied" error if it fails.

See Also

Reference

ISecurableObject Interface

ISecurableObject Members

Microsoft.SharePoint Namespace