IResponseCookies.Delete 方法

定义

重载

Delete(String)

设置过期的 Cookie。

Delete(String, CookieOptions)

设置过期的 Cookie。

Delete(String)

Source:
IResponseCookies.cs

设置过期的 Cookie。

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

参数

key
String

要过期的 Cookie 的名称。

适用于

Delete(String, CookieOptions)

Source:
IResponseCookies.cs

设置过期的 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)

参数

key
String

要过期的 Cookie 的名称。

options
CookieOptions

CookieOptions 用于区分要过期的特定 Cookie。 DomainPath 值尤其重要。

适用于