SPWeb.GetUserEffectivePermissionInfo-Methode

Gets the effective permissions that the specified user has and the role assignments related to this user within this scope.

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

Syntax

'Declaration
Public Overrides Function GetUserEffectivePermissionInfo ( _
    userName As String _
) As SPPermissionInfo
'Usage
Dim instance As SPWeb
Dim userName As String
Dim returnValue As SPPermissionInfo

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

Parameter

  • userName
    Typ: System.String

    The user associated with the returned permissions information.

Rückgabewert

Typ: Microsoft.SharePoint.SPPermissionInfo
The permissions associated with the given user.

Ausnahmen

Ausnahme Bedingung
UnauthorizedAccessException

The user does not have permission to enumerate permissions.

Siehe auch

Referenz

SPWeb Klasse

SPWeb-Member

Microsoft.SharePoint-Namespace