편집

다음을 통해 공유


CustomError(Int32, String) Constructor

Definition

Initializes a new instance of the CustomError class.

public:
 CustomError(int statusCode, System::String ^ redirect);
public CustomError (int statusCode, string redirect);
new System.Web.Configuration.CustomError : int * string -> System.Web.Configuration.CustomError
Public Sub New (statusCode As Integer, redirect As String)

Parameters

statusCode
Int32

The HTTP status code that will result in redirection to the error page.

redirect
String

The URL of the custom page mapped to the error code.

Remarks

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.

Applies to