共用方式為


AuthenticationSchemeProvider.GetDefaultAuthenticateSchemeAsync 方法

定義

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

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

傳回

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

實作

適用於