Condividi tramite


AuthorizationHandler<TRequirement>.HandleRequirementAsync Metodo

Definizione

Prende una decisione se l'autorizzazione è consentita in base a un requisito specifico.

protected:
 abstract System::Threading::Tasks::Task ^ HandleRequirementAsync(Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^ context, TRequirement requirement);
protected abstract System.Threading.Tasks.Task HandleRequirementAsync (Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, TRequirement requirement);
abstract member HandleRequirementAsync : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext * 'Requirement -> System.Threading.Tasks.Task
Protected MustOverride Function HandleRequirementAsync (context As AuthorizationHandlerContext, requirement As TRequirement) As Task

Parametri

context
AuthorizationHandlerContext

Contesto di autorizzazione.

requirement
TRequirement

Requisito di valutazione.

Restituisce

Si applica a