RequestPathBaseCookieBuilder.Build(HttpContext, DateTimeOffset) 方法

定义

如果未显式配置,则 Path 进行配置。

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

参数

expiresFrom
DateTimeOffset

用作计算 Expires基础的时间。

返回

Cookie 选项。

适用于