Partager via


AuthorizationHandler<TRequirement>.HandleRequirementAsync Méthode

Définition

Prend une décision si l’autorisation est autorisée en fonction d’une exigence spécifique.

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

Paramètres

context
AuthorizationHandlerContext

Contexte d’autorisation.

requirement
TRequirement

Exigence à évaluer.

Retours

S’applique à