AuthorizationHandler<TRequirement>.HandleRequirementAsync Methode

Definition

Trifft basierend auf einer bestimmten Anforderung eine Entscheidung, ob die Autorisierung zulässig ist.

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

Parameter

context
AuthorizationHandlerContext

Der Autorisierungskontext.

requirement
TRequirement

Die zu bewertende Anforderung.

Gibt zurück

Gilt für: