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