Export (0) Print
Expand All

HttpRequestBase::ValidateInput Method

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)

public:
virtual void ValidateInput()

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft