Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ClearContent Method

HttpResponse.ClearContent Method

Clears all content output from the buffer stream.

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

public void ClearContent()

The ClearContent method does not clear header information.

The following example clears all content from the buffer stream.

Response.ClearContent();
    

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft