Bagikan melalui


CookieExtensions.AddCookie Metode

Definisi

Overload

AddCookie(AuthenticationBuilder)

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema default. Skema default ditentukan oleh AuthenticationScheme.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema default. Skema default ditentukan oleh AuthenticationScheme.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

AddCookie(AuthenticationBuilder, String)

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema yang ditentukan.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema yang ditentukan.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

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

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema yang ditentukan.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

AddCookie(AuthenticationBuilder)

Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema default. Skema default ditentukan oleh AuthenticationScheme.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

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

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema default. Skema default ditentukan oleh AuthenticationScheme.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

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

configureOptions
Action<CookieAuthenticationOptions>

Delegasi untuk mengonfigurasi CookieAuthenticationOptions.

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk

AddCookie(AuthenticationBuilder, String)

Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema yang ditentukan.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

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

authenticationScheme
String

Skema autentikasi.

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema yang ditentukan.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

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

authenticationScheme
String

Skema autentikasi.

configureOptions
Action<CookieAuthenticationOptions>

Delegasi untuk mengonfigurasi CookieAuthenticationOptions.

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk

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

Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs
Sumber:
CookieExtensions.cs

Menambahkan autentikasi cookie untuk AuthenticationBuilder menggunakan skema yang ditentukan.

Autentikasi cookie menggunakan cookie HTTP yang bertahan di klien untuk melakukan autentikasi.

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

authenticationScheme
String

Skema autentikasi.

displayName
String

Nama tampilan untuk penangan autentikasi.

configureOptions
Action<CookieAuthenticationOptions>

Delegasi untuk mengonfigurasi CookieAuthenticationOptions.

Mengembalikan

Referensi ke builder setelah operasi selesai.

Berlaku untuk