AuthorizationHandler<TRequirement>.HandleRequirementAsync 方法

定义

根据特定要求决定是否允许授权。

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

参数

context
AuthorizationHandlerContext

授权上下文。

requirement
TRequirement

要评估的要求。

返回

适用于