次の方法で共有


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

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.

See also

Reference

SPListItem class

SPListItem members

Microsoft.SharePoint namespace