共用方式為


AssertionRequirement.HandleAsync(AuthorizationHandlerContext) 方法

定義

呼叫 Handler 以查看是否允許授權。

public:
 virtual System::Threading::Tasks::Task ^ HandleAsync(Microsoft::AspNetCore::Authorization::AuthorizationHandlerContext ^ context);
public System.Threading.Tasks.Task HandleAsync (Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext context);
abstract member HandleAsync : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext -> System.Threading.Tasks.Task
override this.HandleAsync : Microsoft.AspNetCore.Authorization.AuthorizationHandlerContext -> System.Threading.Tasks.Task
Public Function HandleAsync (context As AuthorizationHandlerContext) As Task

參數

context
AuthorizationHandlerContext

授權資訊。

傳回

實作

適用於