ChunkingCookieManager.DeleteCookie(HttpContext, String, CookieOptions) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定過期狀態來刪除具有給定索引鍵的 Cookie。 如果要求上存在相符的區塊 Cookie,則刪除每一個區塊。
public:
virtual void DeleteCookie(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ key, Microsoft::AspNetCore::Http::CookieOptions ^ options);
public void DeleteCookie (Microsoft.AspNetCore.Http.HttpContext context, string key, Microsoft.AspNetCore.Http.CookieOptions options);
abstract member DeleteCookie : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Http.CookieOptions -> unit
override this.DeleteCookie : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Http.CookieOptions -> unit
Public Sub DeleteCookie (context As HttpContext, key As String, options As CookieOptions)
參數
- context
- HttpContext
- key
- String
- options
- CookieOptions