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 (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
public ClientResult<bool> DoesUserHavePermissions(
BasePermissions permissionMask
)
Parameters
permissionMask
Type: Microsoft.SharePoint.Client.BasePermissionsSpecifies 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.
Remarks
It must not be a null reference (Nothing in Visual Basic).