共用方式為


AuthenticationOptions.AddScheme 方法

定義

多載

AddScheme(String, Action<AuthenticationSchemeBuilder>)

AuthenticationScheme加入 。

AddScheme<THandler>(String, String)

AuthenticationScheme加入 。

AddScheme(String, Action<AuthenticationSchemeBuilder>)

來源:
AuthenticationOptions.cs
來源:
AuthenticationOptions.cs
來源:
AuthenticationOptions.cs
public:
 void AddScheme(System::String ^ name, Action<Microsoft::AspNetCore::Authentication::AuthenticationSchemeBuilder ^> ^ configureBuilder);
public void AddScheme (string name, Action<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> configureBuilder);
member this.AddScheme : string * Action<Microsoft.AspNetCore.Authentication.AuthenticationSchemeBuilder> -> unit
Public Sub AddScheme (name As String, configureBuilder As Action(Of AuthenticationSchemeBuilder))

參數

name
String

要加入的配置名稱。

configureBuilder
Action<AuthenticationSchemeBuilder>

設定配置。

適用於

AddScheme<THandler>(String, String)

來源:
AuthenticationOptions.cs
來源:
AuthenticationOptions.cs
來源:
AuthenticationOptions.cs
public:
generic <typename THandler>
 where THandler : Microsoft::AspNetCore::Authentication::IAuthenticationHandler void AddScheme(System::String ^ name, System::String ^ displayName);
public void AddScheme<THandler> (string name, string displayName) where THandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler;
public void AddScheme<THandler> (string name, string? displayName) where THandler : Microsoft.AspNetCore.Authentication.IAuthenticationHandler;
member this.AddScheme : string * string -> unit (requires 'Handler :> Microsoft.AspNetCore.Authentication.IAuthenticationHandler)
Public Sub AddScheme(Of THandler As IAuthenticationHandler) (name As String, displayName As String)

類型參數

THandler

負責 IAuthenticationHandler 配置。

參數

name
String

要加入的配置名稱。

displayName
String

配置的顯示名稱。

適用於