Export (0) Print
Expand All

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