共用方式為


IAuthenticationSchemeProvider.GetDefaultAuthenticateSchemeAsync 方法

定義

傳回預設會用於 AuthenticateAsync(HttpContext, String) 的配置。 這通常是透過 DefaultAuthenticateScheme 指定。 否則,這會回復為 DefaultScheme

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationScheme ^> ^ GetDefaultAuthenticateSchemeAsync();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme> GetDefaultAuthenticateSchemeAsync ();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme?> GetDefaultAuthenticateSchemeAsync ();
abstract member GetDefaultAuthenticateSchemeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme>
Public Function GetDefaultAuthenticateSchemeAsync () As Task(Of AuthenticationScheme)

傳回

預設會用於 的配置 AuthenticateAsync(HttpContext, String)

適用於