共用方式為


ResponseExtensions.Clear(HttpResponse) 方法

定義

清除 HTTP 回應。

此調用會重設回應標頭、回應狀態碼和回應本文。

public:
[System::Runtime::CompilerServices::Extension]
 static void Clear(Microsoft::AspNetCore::Http::HttpResponse ^ response);
public static void Clear (this Microsoft.AspNetCore.Http.HttpResponse response);
static member Clear : Microsoft.AspNetCore.Http.HttpResponse -> unit
<Extension()>
Public Sub Clear (response As HttpResponse)

參數

response
HttpResponse

要清除的 HttpResponse

適用於