Web.DoesUserHavePermissions - Méthode
Returns whether the current user has the given set of permissions.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Function DoesUserHavePermissions ( _
permissionMask As BasePermissions _
) As ClientResult(Of Boolean)
'Utilisation
Dim instance As Web
Dim permissionMask As BasePermissions
Dim returnValue As ClientResult(Of Boolean)
returnValue = instance.DoesUserHavePermissions(permissionMask)
public ClientResult<bool> DoesUserHavePermissions(
BasePermissions permissionMask
)
Paramètres
permissionMask
Type : Microsoft.SharePoint.Client.BasePermissionsSpecifies the set of permissions to verify.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.ClientResult<Boolean>
Returns a ClientResult<T> instance representing whether the current user has the given set of permissions.
Remarques
It must not be une référence Null (Rien dans Visual Basic).