共用方式為


IAuthenticationSchemeProvider.GetSchemeAsync(String) 方法

定義

AuthenticationScheme 回符合名稱或 null 的 。

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

參數

name
String

authenticationScheme 的名稱。

傳回

如果找不到配置,則為 null。

適用於