Web.DoesUserHavePermissions method

Returns whether the current user has the given set of permissions.

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

Syntax

'Declaration
Public Function DoesUserHavePermissions ( _
    permissionMask As BasePermissions _
) As ClientResult(Of Boolean)
'Usage
Dim instance As Web
Dim permissionMask As BasePermissions
Dim returnValue As ClientResult(Of Boolean)

returnValue = instance.DoesUserHavePermissions(permissionMask)
public ClientResult<bool> DoesUserHavePermissions(
    BasePermissions permissionMask
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<Boolean>
Returns a ClientResult<T> instance representing whether the current user has the given set of permissions.

Remarks

It must not be a null reference (Nothing in Visual Basic).

See also

Reference

Web class

Web members

Microsoft.SharePoint.Client namespace