共用方式為


AuthenticationSchemeProvider.GetDefaultChallengeSchemeAsync 方法

定義

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

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

傳回

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

實作

適用於