System.Web.HttpResponse.ClearHeaders Method

Clears all headers from the buffer stream.

Syntax

public void ClearHeaders ()

Remarks

This clears all the header definitions that might have been added with HttpResponse.AppendHeader.

This throws an System.Web.HttpException if the headers have already been sent to the client (for example, if the user has called the HttpResponse.Flush method.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0