다음을 통해 공유


RightsSensitiveVisibilityHelper.UserHasRights Method (PermissionContext, SPBasePermissions, PermissionMode, SPContext, SPWeb, 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, _
    context As SPContext, _
    contextWeb As SPWeb, _
    contextList As SPList _
) As Boolean
'Usage
Dim permissionContext As PermissionContext
Dim permissions As SPBasePermissions
Dim permissionMode As PermissionMode
Dim context As SPContext
Dim contextWeb As SPWeb
Dim contextList As SPList
Dim returnValue As Boolean

returnValue = RightsSensitiveVisibilityHelper.UserHasRights(permissionContext, _
    permissions, permissionMode, context, _
    contextWeb, contextList)
public static bool UserHasRights(
    PermissionContext permissionContext,
    SPBasePermissions permissions,
    PermissionMode permissionMode,
    SPContext context,
    SPWeb contextWeb,
    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