CustomError(Int32, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om