CustomError Constructor (Int32, String)

 

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.

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

public CustomError(
	int statusCode,
	string redirect
)

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
Return to top
Show: