This documentation is archived and is not being maintained.

RequestValidator Constructor

Initializes a new instance of the RequestValidator class.

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

public:
RequestValidator()

The RequestValidator class has a default constructor. When a new instance of the class is initialized, an internal method retrieves custom validation details from the application's configuration information. The configuration details are contained in the HttpRuntimeSection section. For more information, see httpRuntime Element (ASP.NET Settings Schema) and the RequestValidationType attribute.

During initialization, a single instance of the RequestValidator class is created, and a reference to the instance is maintained in the Current property. ASP.NET does not create a new request validator instance per request. Therefore, custom implementations of the RequestValidator class must be thread-safe.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: