Compartir a través de


CookieBuilder.Build Método

Definición

Sobrecargas

Build(HttpContext)

Crea las opciones de cookie a partir de la especificada context.

Build(HttpContext, DateTimeOffset)

Crea las opciones de cookie a partir de la especificada context con una expiración basada en expiresFrom y Expiration.

Build(HttpContext)

Source:
CookieBuilder.cs
Source:
CookieBuilder.cs
Source:
CookieBuilder.cs

Crea las opciones de cookie a partir de la especificada context.

public:
 Microsoft::AspNetCore::Http::CookieOptions ^ Build(Microsoft::AspNetCore::Http::HttpContext ^ context);
public Microsoft.AspNetCore.Http.CookieOptions Build (Microsoft.AspNetCore.Http.HttpContext context);
member this.Build : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Http.CookieOptions
Public Function Build (context As HttpContext) As CookieOptions

Parámetros

Devoluciones

Las opciones de cookie.

Se aplica a

Build(HttpContext, DateTimeOffset)

Source:
CookieBuilder.cs
Source:
CookieBuilder.cs
Source:
CookieBuilder.cs

Crea las opciones de cookie a partir de la especificada context con una expiración basada en expiresFrom y Expiration.

public:
 virtual Microsoft::AspNetCore::Http::CookieOptions ^ Build(Microsoft::AspNetCore::Http::HttpContext ^ context, DateTimeOffset expiresFrom);
public virtual Microsoft.AspNetCore.Http.CookieOptions Build (Microsoft.AspNetCore.Http.HttpContext context, DateTimeOffset expiresFrom);
abstract member Build : Microsoft.AspNetCore.Http.HttpContext * DateTimeOffset -> Microsoft.AspNetCore.Http.CookieOptions
override this.Build : Microsoft.AspNetCore.Http.HttpContext * DateTimeOffset -> Microsoft.AspNetCore.Http.CookieOptions
Public Overridable Function Build (context As HttpContext, expiresFrom As DateTimeOffset) As CookieOptions

Parámetros

expiresFrom
DateTimeOffset

El tiempo que se va a usar como base para calcular Expires.

Devoluciones

Las opciones de cookie.

Se aplica a