SPListItem.DoesUserHavePermissionsForUI method
Checks whether the specified user has the specified permissions on an item.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function DoesUserHavePermissionsForUI ( _
permissionMask As SPBasePermissions _
) As Boolean
'Usage
Dim instance As SPListItem
Dim permissionMask As SPBasePermissions
Dim returnValue As Boolean
returnValue = instance.DoesUserHavePermissionsForUI(permissionMask)
public bool DoesUserHavePermissionsForUI(
SPBasePermissions permissionMask
)
Parameters
permissionMask
Type: Microsoft.SharePoint.SPBasePermissionsAn SPBasePermissions value that specifies permissions for the item.
Return value
Type: System.Boolean
true if the user has the permissions; otherwise, false.
Remarks
This method differs from the DoesUserHavePermissions method if the ReadOnlyUI is set to true, and will always be as or more restrictive than the DDoesUserHavePermissions method.