SPList.DoesUserHavePermissions method (SPBasePermissions, Boolean)

Indicates whether the current user has a specified set of permissions on the list and optionally checks permissions on the current folder.

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


Public Function DoesUserHavePermissions ( _
    permissionMask As SPBasePermissions, _
    checkFolder As Boolean _
) As Boolean
Dim instance As SPList
Dim permissionMask As SPBasePermissions
Dim checkFolder As Boolean
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissionMask, _
public bool DoesUserHavePermissions(
    SPBasePermissions permissionMask,
    bool checkFolder


  • checkFolder
    Type: System.Boolean

    true to check permissions against the current folder, either the list root folder or a folder within the list; otherwise, false.

Return value

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


Exception Condition

The current user does not have the EnumeratePermissions right.

See also


SPList class

SPList members

DoesUserHavePermissions overload

Microsoft.SharePoint namespace