ResponseExtensions.Clear(HttpResponse) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clears the HTTP response.
This invocation resets the response headers, response status code, and response body.
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)
Parameters
- response
- HttpResponse
The HttpResponse to clear.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for