HttpRequestWrapper.ValidateInput Method

Definition

Causes validation to occur for the collections that are accessed through the Cookies, Form, and QueryString properties.

C#
public override void ValidateInput();

Remarks

The HttpRequest 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.

Applies to

Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1