Partilhar via


AuthenticationOptions.AddScheme Método

Definição

Sobrecargas

AddScheme(String, Action<AuthenticationSchemeBuilder>)

Adiciona um AuthenticationScheme.

AddScheme<THandler>(String, String)

Adiciona um AuthenticationScheme.

AddScheme(String, Action<AuthenticationSchemeBuilder>)

Origem:
AuthenticationOptions.cs
Origem:
AuthenticationOptions.cs
Origem:
AuthenticationOptions.cs

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

Parâmetros

name
String

O nome do esquema que está sendo adicionado.

configureBuilder
Action<AuthenticationSchemeBuilder>

Configura o esquema.

Aplica-se a

AddScheme<THandler>(String, String)

Origem:
AuthenticationOptions.cs
Origem:
AuthenticationOptions.cs
Origem:
AuthenticationOptions.cs

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

Parâmetros de tipo

THandler

O IAuthenticationHandler responsável pelo esquema.

Parâmetros

name
String

O nome do esquema que está sendo adicionado.

displayName
String

O nome de exibição para o esquema.

Aplica-se a