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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per