Share via


IAuthenticationSchemeProvider.GetDefaultSignInSchemeAsync 方法

定義

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

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

傳回

預設會用於 的配置 SignInAsync(HttpContext, String, ClaimsPrincipal, AuthenticationProperties)

適用於