Freigeben über


NameAuthorizationRequirement.HandleRequirementAsync Methode

Definition

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

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

Parameter

context
AuthorizationHandlerContext

Der Autorisierungskontext.

requirement
NameAuthorizationRequirement

Die zu bewertende Anforderung.

Gibt zurück

Gilt für: