CookieExtensions.AddCookie Metoda

Definice

Přetížení

AddCookie(AuthenticationBuilder)

Přidá ověřování souborů cookie do AuthenticationBuilder výchozího schématu. Výchozí schéma je určeno AuthenticationScheme.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Přidá ověřování souborů cookie do AuthenticationBuilder výchozího schématu. Výchozí schéma je určeno AuthenticationScheme.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

AddCookie(AuthenticationBuilder, String)

Přidá ověřování souborů cookie k AuthenticationBuilder použití zadaného schématu.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Přidá ověřování souborů cookie k AuthenticationBuilder použití zadaného schématu.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

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

Přidá ověřování souborů cookie k AuthenticationBuilder použití zadaného schématu.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

AddCookie(AuthenticationBuilder)

Přidá ověřování souborů cookie do AuthenticationBuilder výchozího schématu. Výchozí schéma je určeno AuthenticationScheme.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

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

Parametry

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Přidá ověřování souborů cookie do AuthenticationBuilder výchozího schématu. Výchozí schéma je určeno AuthenticationScheme.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

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

Parametry

configureOptions
Action<CookieAuthenticationOptions>

Delegát pro konfiguraci CookieAuthenticationOptions.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

AddCookie(AuthenticationBuilder, String)

Přidá ověřování souborů cookie k AuthenticationBuilder použití zadaného schématu.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

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

Parametry

authenticationScheme
String

Schéma ověřování.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Přidá ověřování souborů cookie k AuthenticationBuilder použití zadaného schématu.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

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

Parametry

authenticationScheme
String

Schéma ověřování.

configureOptions
Action<CookieAuthenticationOptions>

Delegát pro konfiguraci CookieAuthenticationOptions.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro

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

Přidá ověřování souborů cookie k AuthenticationBuilder použití zadaného schématu.

Ověřování souborem cookie používá k ověřování trvalý soubor cookie HTTP v klientovi.

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

Parametry

authenticationScheme
String

Schéma ověřování.

displayName
String

Zobrazovaný název obslužné rutiny ověřování

configureOptions
Action<CookieAuthenticationOptions>

Delegát pro konfiguraci CookieAuthenticationOptions.

Návraty

AuthenticationBuilder

Odkaz na builder po dokončení operace.

Platí pro