SPListItem.DoesUserHavePermissions Method (SPBasePermissions)

Checks whether the current user has the specified permissions to an item.

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

Syntax

Public Function DoesUserHavePermissions ( _
    permissionMask As SPBasePermissions _
) As Boolean

Dim instance As SPListItem
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean

returnValue = instance.DoesUserHavePermissions(permissionMask)
public bool DoesUserHavePermissions(
    SPBasePermissions permissionMask
)

Parameters

Return Value

Type: System.Boolean
true if permissions succeeded; otherwise, false.

Implements

ISecurableObject.DoesUserHavePermissions(SPBasePermissions)

See Also

Reference

SPListItem Class

SPListItem Members

DoesUserHavePermissions Overload

Microsoft.SharePoint Namespace