次の方法で共有


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)

Syntax

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

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

Parameters

Return value

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

See also

Reference

SPListItem class

SPListItem members

DoesUserHavePermissions overload

Microsoft.SharePoint namespace