CustomError(Int32, String) Construtor
Definição
Inicializa uma nova instância da classe CustomError.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)
Parâmetros
- statusCode
- Int32
O código de status HTTP que resultará no redirecionamento para a página de erro.The HTTP status code that will result in redirection to the error page.
- redirect
- String
A URL da página personalizada mapeada para o código de erro.The URL of the custom page mapped to the error code.
Comentários
O CustomError Construtor não se destina a ser usado diretamente do seu código.The CustomError constructor is not intended to be used directly from your code. Ele é chamado pelo sistema de configuração do ASP.NET.It is called by the ASP.NET configuration system. Você Obtém uma instância da CustomError classe usando o GetSection método.You obtain an instance of the CustomError class by using the GetSection method.