다음을 통해 공유


RightsSensitiveVisibilityHelper.UserHasRights Method (PermissionContext, SPBasePermissions, PermissionMode, SPList)

Returns a Boolean value that indicates whether the current user has permissions for a specified SPList object.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function UserHasRights ( _
    permissionContext As PermissionContext, _
    permissions As SPBasePermissions, _
    permissionMode As PermissionMode, _
    contextList As SPList _
) As Boolean
'Usage
Dim permissionContext As PermissionContext
Dim permissions As SPBasePermissions
Dim permissionMode As PermissionMode
Dim contextList As SPList
Dim returnValue As Boolean

returnValue = RightsSensitiveVisibilityHelper.UserHasRights(permissionContext, _
    permissions, permissionMode, contextList)
public static bool UserHasRights(
    PermissionContext permissionContext,
    SPBasePermissions permissions,
    PermissionMode permissionMode,
    SPList contextList
)

Parameters

Return Value

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

See Also

Reference

RightsSensitiveVisibilityHelper Class

RightsSensitiveVisibilityHelper Members

UserHasRights Overload

Microsoft.SharePoint.Utilities Namespace