HttpRequestValidationException Constructor (String)


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

Creates a new HttpRequestValidationException exception with the specified error message.

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

public HttpRequestValidationException(
	string message


Type: System.String

A string that describes the error.

The content of the message parameter is intended to be human readable. The caller of the HttpRequestValidationException(String) constructor is required to ensure that the message string has been localized.

.NET Framework
Available since 2.0
Return to top