HttpRequestBase.ValidateInput Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, causes validation to occur for the collections that are accessed through the Cookies, Form, and QueryString properties.

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

abstract ValidateInput : unit -> unit
override ValidateInput : unit -> unit

Exception Condition
NotImplementedException

Always.

The HttpRequestBase class uses input validation flags to determine whether to perform validation on the request collections that are accessed through the Cookies, Form, and QueryString properties. The ValidateInput method sets these flags so that when the get accessors of the Cookies, Form, or QueryString properties are invoked, input validation is performed. Validation works by checking all input data against a hard-coded list of potentially dangerous data.

.NET Framework
Available since 3.5
Return to top
Show: