This documentation is archived and is not being maintained.

HttpResponse.Filter Property

Gets or sets a wrapping filter object used to modify the HTTP entity body before transmission.

[Visual Basic]
Public Property Filter As Stream
public Stream Filter {get; set;}
public: __property Stream* get_Filter();
public: __property void set_Filter(Stream*);
public function get Filter() : Stream;
public function set Filter(Stream);

Property Value

The Stream object that acts as the output filter.


Exception Type Condition
HttpException Filtering is not allowed with the entity.


When you create a Stream object and set the Response.Filter property to the Stream object, all HTTP output sent by Response.Write passes through the filter.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace