共用方式為


ISecurableObject.CheckPermissions method

NOTE: This API is now obsolete.

檢查指定的權限集合的權限。

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

Syntax

'宣告
<ObsoleteAttribute("Use the SPSecurableObject class instead")> _
Sub CheckPermissions ( _
    permissionMask As SPBasePermissions _
)
'用途
Dim instance As ISecurableObject
Dim permissionMask As SPBasePermissions

instance.CheckPermissions(permissionMask)
[ObsoleteAttribute("Use the SPSecurableObject class instead")]
void CheckPermissions(
    SPBasePermissions permissionMask
)

參數

備註

如果失敗, CheckPermissions方法會傳回 「 拒絕存取 」 錯誤。

請參閱

參照

ISecurableObject interface

ISecurableObject members

Microsoft.SharePoint namespace