共用方式為


SPSite.CheckForPermissions method

Checks the permissions for a given set of rights and throws an Unauthorized Access exception if the permission check fails.

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

Syntax

'宣告
Public Sub CheckForPermissions ( _
    acl As SPReusableAcl, _
    permissionMask As SPBasePermissions _
)
'用途
Dim instance As SPSite
Dim acl As SPReusableAcl
Dim permissionMask As SPBasePermissions

instance.CheckForPermissions(acl, permissionMask)
public void CheckForPermissions(
    SPReusableAcl acl,
    SPBasePermissions permissionMask
)

參數

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace