Partager via


SPList.GetUserEffectivePermissionInfo - Méthode

Gets detailed information about the effective permissions that a specified user has on the list and the role assignments for this user at this scope.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Overrides Function GetUserEffectivePermissionInfo ( _
    userName As String _
) As SPPermissionInfo
'Utilisation
Dim instance As SPList
Dim userName As String
Dim returnValue As SPPermissionInfo

returnValue = instance.GetUserEffectivePermissionInfo(userName)
public override SPPermissionInfo GetUserEffectivePermissionInfo(
    string userName
)

Paramètres

  • userName
    Type : System.String

    The name of the user whose permissions are to be returned.

Valeur renvoyée

Type : Microsoft.SharePoint.SPPermissionInfo
Detailed information about the permissions and role assignments for a user.

Exceptions

Exception Condition
UnauthorizedAccessException

The current user does not have the permission to enumerate permissions.

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms

GetUserEffectivePermissions(String)