Filter Property

HttpRequest.Filter Property


Gets or sets the filter to use when reading the current input stream.

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

public Stream Filter { get; set; }

Property Value

Type: System.IO.Stream

A Stream object to be used as the filter.

Exception Condition

The specified Stream is invalid.

The following code example creates two new classes, QQQ1 and QQQ2 that filter the InputStream. Put the classes into the Global.asax file in an ASP.NET application's directory so that all input for all ASP.NET Web pages in the application will be filtered.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft