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

适用于