Delen via


IResponseCookies.Delete Method

Definition

Overloads

Delete(String)

Sets an expired cookie.

Delete(String, CookieOptions)

Sets an expired cookie.

Delete(String)

Source:
IResponseCookies.cs

Sets an expired cookie.

public:
 void Delete(System::String ^ key);
public void Delete (string key);
abstract member Delete : string -> unit
Public Sub Delete (key As String)

Parameters

key
String

Name of the cookie to expire.

Applies to

Delete(String, CookieOptions)

Source:
IResponseCookies.cs

Sets an expired cookie.

public:
 void Delete(System::String ^ key, Microsoft::AspNetCore::Http::CookieOptions ^ options);
public void Delete (string key, Microsoft.AspNetCore.Http.CookieOptions options);
abstract member Delete : string * Microsoft.AspNetCore.Http.CookieOptions -> unit
Public Sub Delete (key As String, options As CookieOptions)

Parameters

key
String

Name of the cookie to expire.

options
CookieOptions

CookieOptions used to discriminate the particular cookie to expire. The Domain and Path values are especially important.

Applies to