CookieHandler.Delete CookieHandler.Delete CookieHandler.Delete CookieHandler.Delete Method

Definition

Deletes a cookie.

Overloads

Delete() Delete() Delete() Delete()

Deletes the cookie associated with the current request that has the default name, domain, and path.

Delete(String) Delete(String) Delete(String) Delete(String)

Deletes the cookie associated with the current request that has the specified name and the default domain and path.

Delete(HttpContext) Delete(HttpContext) Delete(HttpContext) Delete(HttpContext)

Deletes the cookie associated with the current request that has the default name, domain, and path.

Delete(String, HttpContext) Delete(String, HttpContext) Delete(String, HttpContext) Delete(String, HttpContext)

Deletes the cookie associated with the specified request that has the specified name and the default domain and path.

Delete(String, String, String, HttpContext) Delete(String, String, String, HttpContext) Delete(String, String, String, HttpContext) Delete(String, String, String, HttpContext)

Deletes the cookie associated with the specified request that has the specified name, path, and domain.

Delete() Delete() Delete() Delete()

Deletes the cookie associated with the current request that has the default name, domain, and path.

public:
 void Delete();
public void Delete ();
member this.Delete : unit -> unit
Public Sub Delete ()

Remarks

The name, domain and path are specified by the Name, Domain, and Path properties. The request is specified by HttpContext.Current

Delete(String) Delete(String) Delete(String) Delete(String)

Deletes the cookie associated with the current request that has the specified name and the default domain and path.

public:
 void Delete(System::String ^ name);
public void Delete (string name);
member this.Delete : string -> unit
Public Sub Delete (name As String)

Parameters

name
String String String String

The name of the cookie.

Exceptions

Remarks

The domain and path are specified by the Domain and Path properties. The request is specified by HttpContext.Current

Delete(HttpContext) Delete(HttpContext) Delete(HttpContext) Delete(HttpContext)

Deletes the cookie associated with the current request that has the default name, domain, and path.

public:
 void Delete(System::Web::HttpContext ^ context);
public void Delete (System.Web.HttpContext context);
member this.Delete : System.Web.HttpContext -> unit
Public Sub Delete (context As HttpContext)

Parameters

Remarks

The name, domain and path are specified by the Name, Domain, and Path properties.

Delete(String, HttpContext) Delete(String, HttpContext) Delete(String, HttpContext) Delete(String, HttpContext)

Deletes the cookie associated with the specified request that has the specified name and the default domain and path.

public:
 void Delete(System::String ^ name, System::Web::HttpContext ^ context);
public void Delete (string name, System.Web.HttpContext context);
member this.Delete : string * System.Web.HttpContext -> unit
Public Sub Delete (name As String, context As HttpContext)

Parameters

name
String String String String

The name of the cookie.

Exceptions

Remarks

The domain and path are specified by the Domain and Path properties.

Delete(String, String, String, HttpContext) Delete(String, String, String, HttpContext) Delete(String, String, String, HttpContext) Delete(String, String, String, HttpContext)

Deletes the cookie associated with the specified request that has the specified name, path, and domain.

public:
 void Delete(System::String ^ name, System::String ^ path, System::String ^ domain, System::Web::HttpContext ^ context);
public void Delete (string name, string path, string domain, System.Web.HttpContext context);
member this.Delete : string * string * string * System.Web.HttpContext -> unit
Public Sub Delete (name As String, path As String, domain As String, context As HttpContext)

Parameters

name
String String String String

The name of the cookie.

path
String String String String

The path for the cookie.

domain
String String String String

The domain for the cookie

Exceptions

Applies to