SPListItem.DoesUserHavePermissions method (SPUser, SPBasePermissions)

Indicates whether the specified user has the specified permissions on an item.

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


Public Function DoesUserHavePermissions ( _
    user As SPUser, _
    permissionMask As SPBasePermissions _
) As Boolean
Dim instance As SPListItem
Dim user As SPUser
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

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


Return value

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

See also


SPListItem class

SPListItem members

DoesUserHavePermissions overload

Microsoft.SharePoint namespace