CookieExtensions.AddCookie Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
AddCookie(AuthenticationBuilder) |
Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben. Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen. |
AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>) |
Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben. Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen. |
AddCookie(AuthenticationBuilder, String) |
Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder . Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen. |
AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>) |
Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder . Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen. |
AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>) |
Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder . Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen. |
AddCookie(AuthenticationBuilder)
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben.
Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.
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
Parameter
- builder
- AuthenticationBuilder
Gibt zurück
Ein Verweis auf, builder
nachdem der Vorgang abgeschlossen wurde.
Gilt für:
AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
Fügt die Cookieauthentifizierung mithilfe des Standardschemas hinzu AuthenticationBuilder . Das Standardschema wird durch AuthenticationSchemeangegeben.
Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.
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
Parameter
- builder
- AuthenticationBuilder
- configureOptions
- Action<CookieAuthenticationOptions>
Ein Delegat zum Konfigurieren CookieAuthenticationOptionsvon .
Gibt zurück
Ein Verweis auf, builder
nachdem der Vorgang abgeschlossen wurde.
Gilt für:
AddCookie(AuthenticationBuilder, String)
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .
Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.
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
Parameter
- builder
- AuthenticationBuilder
- authenticationScheme
- String
Das Authentifizierungsschema.
Gibt zurück
Ein Verweis auf, builder
nachdem der Vorgang abgeschlossen wurde.
Gilt für:
AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .
Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.
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
Parameter
- builder
- AuthenticationBuilder
- authenticationScheme
- String
Das Authentifizierungsschema.
- configureOptions
- Action<CookieAuthenticationOptions>
Ein Delegat zum Konfigurieren CookieAuthenticationOptionsvon .
Gibt zurück
Ein Verweis auf, builder
nachdem der Vorgang abgeschlossen wurde.
Gilt für:
AddCookie(AuthenticationBuilder, String, String, Action<CookieAuthenticationOptions>)
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
- Quelle:
- CookieExtensions.cs
Fügt die Cookieauthentifizierung mithilfe des angegebenen Schemas hinzu AuthenticationBuilder .
Die Cookieauthentifizierung verwendet ein im Client gespeichertes HTTP-Cookie, um die Authentifizierung durchzuführen.
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
Parameter
- builder
- AuthenticationBuilder
- authenticationScheme
- String
Das Authentifizierungsschema.
- displayName
- String
Ein Anzeigename für den Authentifizierungshandler.
- configureOptions
- Action<CookieAuthenticationOptions>
Ein Delegat zum Konfigurieren CookieAuthenticationOptionsvon .
Gibt zurück
Ein Verweis auf, builder
nachdem der Vorgang abgeschlossen wurde.