AuthenticationHandlerProvider.GetHandlerAsync(HttpContext, String) 方法

定義

傳回將使用的處理常式實例。

C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.IAuthenticationHandler> GetHandlerAsync (Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme);
C#
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.IAuthenticationHandler?> GetHandlerAsync (Microsoft.AspNetCore.Http.HttpContext context, string authenticationScheme);

參數

context
HttpContext

內容。

authenticationScheme
String

正在處理的驗證配置名稱。

傳回

處理常式實例。

實作

適用於

產品 版本
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0