CookieExtensions.AddCookie Метод

Определение

Перегрузки

AddCookie(AuthenticationBuilder)

Добавляет проверку подлинности AuthenticationBuilder с помощью файлов cookie в схему по умолчанию. Схема по умолчанию задается параметром AuthenticationScheme.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Добавляет проверку подлинности AuthenticationBuilder с помощью файлов cookie в схему по умолчанию. Схема по умолчанию задается параметром AuthenticationScheme.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

AddCookie(AuthenticationBuilder, String)

Добавляет проверку подлинности AuthenticationBuilder с помощью файла cookie с использованием указанной схемы.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Добавляет проверку подлинности AuthenticationBuilder с помощью файла cookie с использованием указанной схемы.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

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

Добавляет проверку подлинности AuthenticationBuilder с помощью файла cookie с использованием указанной схемы.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

AddCookie(AuthenticationBuilder)

Исходный код:
CookieExtensions.cs
Исходный код:
CookieExtensions.cs

Добавляет проверку подлинности AuthenticationBuilder с помощью файлов cookie в схему по умолчанию. Схема по умолчанию задается параметром AuthenticationScheme.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

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

Параметры

Возвращаемое значение

Ссылка на builder после завершения операции.

Применяется к

AddCookie(AuthenticationBuilder, Action<CookieAuthenticationOptions>)

Исходный код:
CookieExtensions.cs
Исходный код:
CookieExtensions.cs

Добавляет проверку подлинности AuthenticationBuilder с помощью файлов cookie в схему по умолчанию. Схема по умолчанию задается параметром AuthenticationScheme.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

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

Параметры

configureOptions
Action<CookieAuthenticationOptions>

Делегат для настройки CookieAuthenticationOptions.

Возвращаемое значение

Ссылка на builder после завершения операции.

Применяется к

AddCookie(AuthenticationBuilder, String)

Исходный код:
CookieExtensions.cs
Исходный код:
CookieExtensions.cs

Добавляет проверку подлинности AuthenticationBuilder с помощью файла cookie с использованием указанной схемы.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

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

Параметры

authenticationScheme
String

Схема проверки подлинности.

Возвращаемое значение

Ссылка на builder после завершения операции.

Применяется к

AddCookie(AuthenticationBuilder, String, Action<CookieAuthenticationOptions>)

Исходный код:
CookieExtensions.cs
Исходный код:
CookieExtensions.cs

Добавляет проверку подлинности AuthenticationBuilder с помощью файла cookie с использованием указанной схемы.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

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

Параметры

authenticationScheme
String

Схема проверки подлинности.

configureOptions
Action<CookieAuthenticationOptions>

Делегат для настройки CookieAuthenticationOptions.

Возвращаемое значение

Ссылка на builder после завершения операции.

Применяется к

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

Исходный код:
CookieExtensions.cs
Исходный код:
CookieExtensions.cs

Добавляет проверку подлинности AuthenticationBuilder с помощью файла cookie с использованием указанной схемы.

Для проверки подлинности используется файл cookie HTTP, сохраненный в клиенте.

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

Параметры

authenticationScheme
String

Схема проверки подлинности.

displayName
String

Отображаемое имя обработчика проверки подлинности.

configureOptions
Action<CookieAuthenticationOptions>

Делегат для настройки CookieAuthenticationOptions.

Возвращаемое значение

Ссылка на builder после завершения операции.

Применяется к