Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpResponse::Clear Method ()

 

Clears all content output from the buffer stream.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
void Clear()

The Clear method does not clear header information.

The following example sets the ContentType property for the response to image/jpeg, calls the Clear method to remove other content that might be attached to the response, and then sets the BufferOutput property to true so that the complete page will be processed before any content is sent to the requesting client.

For a complete example, see the HttpResponse class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft