CookieExtensions.AddCookie Metodo

Definizione

Overload

Nome Descrizione
AddCookie(AuthenticationBuilder)

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema predefinito. Lo schema predefinito è specificato da AuthenticationScheme.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema predefinito. Lo schema predefinito è specificato da AuthenticationScheme.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

AddCookie(AuthenticationBuilder, String)

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema specificato.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema specificato.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema specificato.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

AddCookie(AuthenticationBuilder)

Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema predefinito. Lo schema predefinito è specificato da AuthenticationScheme.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder) As AuthenticationBuilder

Parametri

Valori restituiti

Riferimento a builder dopo il completamento dell'operazione.

Si applica a

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema predefinito. Lo schema predefinito è specificato da AuthenticationScheme.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Parametri

configureOptions
Action<CookieAuthenticationOptions>

Delegato per configurare CookieAuthenticationOptions.

Valori restituiti

Riferimento a builder dopo il completamento dell'operazione.

Si applica a

AddCookie(AuthenticationBuilder, String)

Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema specificato.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String) As AuthenticationBuilder

Parametri

authenticationScheme
String

Schema di autenticazione.

Valori restituiti

Riferimento a builder dopo il completamento dell'operazione.

Si applica a

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema specificato.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Parametri

authenticationScheme
String

Schema di autenticazione.

configureOptions
Action<CookieAuthenticationOptions>

Delegato per configurare CookieAuthenticationOptions.

Valori restituiti

Riferimento a builder dopo il completamento dell'operazione.

Si applica a

AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)

Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs
Origine:
CookieExtensions.cs

Aggiunge l'autenticazione dei cookie all'uso AuthenticationBuilder dello schema specificato.

L'autenticazione cookie usa un cookie HTTP persistente nel client per eseguire l'autenticazione.

public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
public static Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> configureOptions);
static member AddCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder * string * string * Action<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder
<Extension()>
Public Function AddCookie (builder As AuthenticationBuilder, authenticationScheme As String, displayName As String, configureOptions As Action(Of CookieAuthenticationOptions)) As AuthenticationBuilder

Parametri

authenticationScheme
String

Schema di autenticazione.

displayName
String

Nome visualizzato per il gestore di autenticazione.

configureOptions
Action<CookieAuthenticationOptions>

Delegato per configurare CookieAuthenticationOptions.

Valori restituiti

Riferimento a builder dopo il completamento dell'operazione.

Si applica a