HttpRequestValidationException Constructor (String)

 

Creates a new HttpRequestValidationException exception with the specified error message.

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

new : 
        message:string -> HttpRequestValidationException

Parameters

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
Show: