Condividi tramite


AuthenticationOptions.AddScheme Metodo

Definizione

Overload

AddScheme(String, Action<AuthenticationSchemeBuilder>)

Aggiunge un oggetto AuthenticationScheme.

AddScheme<THandler>(String, String)

Aggiunge un oggetto AuthenticationScheme.

AddScheme(String, Action<AuthenticationSchemeBuilder>)

Origine:
AuthenticationOptions.cs
Origine:
AuthenticationOptions.cs
Origine:
AuthenticationOptions.cs

Aggiunge un oggetto AuthenticationScheme.

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))

Parametri

name
String

Nome dello schema da aggiungere.

configureBuilder
Action<AuthenticationSchemeBuilder>

Configura lo schema.

Si applica a

AddScheme<THandler>(String, String)

Origine:
AuthenticationOptions.cs
Origine:
AuthenticationOptions.cs
Origine:
AuthenticationOptions.cs

Aggiunge un oggetto AuthenticationScheme.

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)

Parametri di tipo

THandler

Responsabile IAuthenticationHandler dello schema.

Parametri

name
String

Nome dello schema da aggiungere.

displayName
String

Nome visualizzato dello schema.

Si applica a