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;但是,这不是一项要求。

适用于