共用方式為


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 值。

適用於