SPSecurableObject.DoesUserHavePermissions method

Indicates whether the current user has a specified set of permissions.

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

'Declaration
Public Overridable Function DoesUserHavePermissions ( _
	permissionMask As SPBasePermissions _
) As Boolean
'Usage
Dim instance As SPSecurableObject
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissionMask)

Parameters

permissionMask
Type: Microsoft.SharePoint.SPBasePermissions

A bitwise combination of enumeration values that specifies a set of permissions.

Return value

Type: System.Boolean
true if the current user has the specified permissions; otherwise, false.

Implements

ISecurableObject.DoesUserHavePermissions(SPBasePermissions)
Show: