Export (0) Print
Expand All

Web.DoesUserHavePermissions method

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public ClientResult<bool> DoesUserHavePermissions(
	BasePermissions permissionMask
)

Parameters

permissionMask
Type: Microsoft.SharePoint.Client.BasePermissions

Specifies the set of permissions to verify.

Return value

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

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

Show:
© 2014 Microsoft