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
)
參數
permissionMask
Type: Microsoft.SharePoint.SPBasePermissions指定一組的權限可檢查的SPBasePermissions值。
備註
如果失敗, CheckPermissions方法會傳回 「 拒絕存取 」 錯誤。