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
Available since 1.1
Return to top
Show:
© 2016 Microsoft