Share via


CookieHandler.DeleteCore(String, String, String, HttpContext) 方法

定義

在衍生類別中覆寫時,刪除與指定的要求關聯的 Cookie,其具有指定名稱、網域及路徑。

protected:
 abstract void DeleteCore(System::String ^ name, System::String ^ path, System::String ^ domain, System::Web::HttpContext ^ context);
protected abstract void DeleteCore (string name, string path, string domain, System.Web.HttpContext context);
abstract member DeleteCore : string * string * string * System.Web.HttpContext -> unit
Protected MustOverride Sub DeleteCore (name As String, path As String, domain As String, context As HttpContext)

參數

name
String

Cookie 的名稱。

path
String

Cookie 的路徑。

domain
String

Cookie 的網域。

context
HttpContext

要求的 HttpContext

備註

從多載 Delete 方法呼叫,以執行刪除 Cookie 的實際工作。 方法 Delete 可確保名稱和路徑不是空字串。

給實施者的注意事項

您必須覆寫這個方法。 實作完全由開發人員決定。 在一般情況下,實作會將集合中指定的 Cookies Cookie取代為具有 null 數據和早於目前時間設定到期時間的Cookie;不過,這不是必要專案。

適用於