Compartir a través de


(PermissionContext, SPBasePermissions, PermissionMode, SPContext, SPWeb, SPList) del método RightsSensitiveVisibilityHelper.UserHasRights

Devuelve un valor booleano que indica si el usuario actual tiene permisos para un objeto especificado SPList .

Espacio de nombres:  Microsoft.SharePoint.Utilities
Ensamblado:  Microsoft.SharePoint (en Microsoft.SharePoint.dll)

Sintaxis

'Declaración
Public Shared Function UserHasRights ( _
    permissionContext As PermissionContext, _
    permissions As SPBasePermissions, _
    permissionMode As PermissionMode, _
    context As SPContext, _
    contextWeb As SPWeb, _
    contextList As SPList _
) As Boolean
'Uso
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
)

Parámetros

Valor devuelto

Tipo: System.Boolean
true si el usuario actual tiene permisos para el objeto; en caso contrario, false.

Vea también

Referencia

clase RightsSensitiveVisibilityHelper

Miembros RightsSensitiveVisibilityHelper

Sobrecarga UserHasRights

Espacio de nombres Microsoft.SharePoint.Utilities