ChunkingCookieManager.AppendResponseCookie 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将新的响应 Cookie 添加到 Set-Cookie 标头。 如果 Cookie 大于给定大小限制,则它将分解为多个 Cookie,如下所示:Set-Cookie:CookieName=chunks-3;path=/ Set-Cookie: CookieNameC1=Segment1;path=/ Set-Cookie: CookieNameC2=Segment2;path=/ Set-Cookie: CookieNameC3=Segment3;path=/
public:
virtual void AppendResponseCookie(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ key, System::String ^ value, Microsoft::AspNetCore::Http::CookieOptions ^ options);
public void AppendResponseCookie (Microsoft.AspNetCore.Http.HttpContext context, string key, string value, Microsoft.AspNetCore.Http.CookieOptions options);
public void AppendResponseCookie (Microsoft.AspNetCore.Http.HttpContext context, string key, string? value, Microsoft.AspNetCore.Http.CookieOptions options);
abstract member AppendResponseCookie : Microsoft.AspNetCore.Http.HttpContext * string * string * Microsoft.AspNetCore.Http.CookieOptions -> unit
override this.AppendResponseCookie : Microsoft.AspNetCore.Http.HttpContext * string * string * Microsoft.AspNetCore.Http.CookieOptions -> unit
Public Sub AppendResponseCookie (context As HttpContext, key As String, value As String, options As CookieOptions)
参数
- context
- HttpContext
- key
- String
- value
- String
- options
- CookieOptions