Compartir a través de


IdentityCookieAuthenticationBuilderExtensions.AddApplicationCookie Método

Definición

Agrega la cookie de aplicación de identidad.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Options::OptionsBuilder<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^ AddApplicationCookie(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder);
public static Microsoft.Extensions.Options.OptionsBuilder<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> AddApplicationCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddApplicationCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.Extensions.Options.OptionsBuilder<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>
<Extension()>
Public Function AddApplicationCookie (builder As AuthenticationBuilder) As OptionsBuilder(Of CookieAuthenticationOptions)

Parámetros

builder
AuthenticationBuilder

Instancia de AuthenticationBuilder actual.

Devoluciones

que OptionsBuilder<TOptions> se puede usar para configurar la autenticación de cookies.

Se aplica a