Compartilhar via


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

Retorna um valor booleano que indica se o usuário atual tem permissões para um objeto especificado SPList .

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaração
Public Shared Function UserHasRights ( _
    permissionContext As PermissionContext, _
    permissions As SPBasePermissions, _
    permissionMode As PermissionMode, _
    contextList As SPList _
) As Boolean
'Uso
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
)

Parâmetros

Valor retornado

Type: System.Boolean
true se o usuário atual tem permissões para o objeto; Caso contrário, false.

Ver também

Referência

RightsSensitiveVisibilityHelper class

RightsSensitiveVisibilityHelper members

UserHasRights overload

Microsoft.SharePoint.Utilities namespace