Sdílet prostřednictvím


AuthorizationHandlerContext Konstruktor

Definice

Vytvoří novou instanci položky AuthorizationHandlerContext.

public:
 AuthorizationHandlerContext(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::IAuthorizationRequirement ^> ^ requirements, System::Security::Claims::ClaimsPrincipal ^ user, System::Object ^ resource);
public AuthorizationHandlerContext (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> requirements, System.Security.Claims.ClaimsPrincipal user, object resource);
public AuthorizationHandlerContext (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> requirements, System.Security.Claims.ClaimsPrincipal user, object? resource);
new Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext : seq<Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> * System.Security.Claims.ClaimsPrincipal * obj -> Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext
Public Sub New (requirements As IEnumerable(Of IAuthorizationRequirement), user As ClaimsPrincipal, resource As Object)

Parametry

requirements
IEnumerable<IAuthorizationRequirement>

Kolekce všech pro IAuthorizationRequirement aktuální autorizační akci.

user
ClaimsPrincipal

Představující ClaimsPrincipal aktuálního uživatele.

resource
Object

Volitelný prostředek, který se má vyhodnotit proti requirements .

Platí pro