AppendCookieContext(HttpContext, CookieOptions, String, String) 构造函数

定义

初始化 AppendCookieContext 的新实例。

public:
 AppendCookieContext(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Http::CookieOptions ^ options, System::String ^ name, System::String ^ value);
public AppendCookieContext (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.CookieOptions options, string name, string value);
new Microsoft.AspNetCore.CookiePolicy.AppendCookieContext : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Http.CookieOptions * string * string -> Microsoft.AspNetCore.CookiePolicy.AppendCookieContext
Public Sub New (context As HttpContext, options As CookieOptions, name As String, value As String)

参数

context
HttpContext

请求 HttpContext

options
CookieOptions

CookieOptions传递给 Cookie 策略的 。

name
String

Cookie 名称。

value
String

Cookie 值。

适用于