CustomError Constructor (Int32, String)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the CustomError class.
Assembly: System.Web (in System.Web.dll)
Parameters
- statusCode
-
Type:
System.Int32
The HTTP status code that will result in redirection to the error page.
- redirect
-
Type:
System.String
The URL of the custom page mapped to the error code.
The CustomError constructor is not intended to be used directly from your code. It is called by the ASP.NET configuration system. You obtain an instance of the CustomError class by using the GetSection method.
.NET Framework
Available since 2.0
Available since 2.0
Show: