Partager via


NameAuthorizationRequirement.HandleRequirementAsync Méthode

Définition

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

protected:
 override System::Threading::Tasks::Task ^ HandleRequirementAsync(Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^ context, Microsoft::AspNetCore::Authorization::Infrastructure::NameAuthorizationRequirement ^ requirement);
protected override System.Threading.Tasks.Task HandleRequirementAsync (Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context, Microsoft.AspNetCore.Authorization.Infrastructure.NameAuthorizationRequirement requirement);
override this.HandleRequirementAsync : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext * Microsoft.AspNetCore.Authorization.Infrastructure.NameAuthorizationRequirement -> System.Threading.Tasks.Task
Protected Overrides Function HandleRequirementAsync (context As AuthorizationHandlerContext, requirement As NameAuthorizationRequirement) As Task

Paramètres

context
AuthorizationHandlerContext

Contexte d’autorisation.

requirement
NameAuthorizationRequirement

Exigence à évaluer.

Retours

S’applique à