Partager via


RequestPathBaseCookieBuilder.Build(HttpContext, DateTimeOffset) Méthode

Définition

Configure s’il Path n’est pas configuré explicitement.

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

Paramètres

context
HttpContext

L’HttpContextopérateur

expiresFrom
DateTimeOffset

Heure à utiliser comme base pour le calcul Expires.

Retours

Options de cookie.

S’applique à