Share via


SPWeb.GetUserEffectivePermissions-Methode

Gets the effective permissions that the specified user has within the current application scope.

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

Syntax

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

returnValue = instance.GetUserEffectivePermissions(userName)
public override SPBasePermissions GetUserEffectivePermissions(
    string userName
)

Parameter

  • userName
    Typ: System.String

    The user associated with the returned permissions.

Rückgabewert

Typ: Microsoft.SharePoint.SPBasePermissions
The permissions of 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