Freigeben über


DenyAnonymousAuthorizationRequirement.HandleRequirementAsync Methode

Definition

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

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

Parameter

context
AuthorizationHandlerContext

Der Autorisierungskontext.

requirement
DenyAnonymousAuthorizationRequirement

Die Anforderung zur Bewertung.

Gibt zurück

Gilt für: