Partager via


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

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).

Voir aussi

Référence

Web classe

Web - Membres

Microsoft.SharePoint.Client - Espace de noms