SPSite.CheckForPermissions - Méthode
Checks the permissions for a given set of rights and throws an Unauthorized Access exception if the permission check fails.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Sub CheckForPermissions ( _
acl As SPReusableAcl, _
permissionMask As SPBasePermissions _
)
'Utilisation
Dim instance As SPSite
Dim acl As SPReusableAcl
Dim permissionMask As SPBasePermissions
instance.CheckForPermissions(acl, permissionMask)
public void CheckForPermissions(
SPReusableAcl acl,
SPBasePermissions permissionMask
)
Paramètres
acl
Type : Microsoft.SharePoint.SPReusableAclAn SPReusableAcl object that represents the reusable access control list of the site collection.
permissionMask
Type : Microsoft.SharePoint.SPBasePermissionsAn SPBasePermissions value that specifies base permissions for the site collection.