HttpListenerException Construtores

Definição

Inicializa uma nova instância da classe HttpListenerException.Initializes a new instance of the HttpListenerException class.

Sobrecargas

HttpListenerException()

Inicializa uma nova instância da classe HttpListenerException.Initializes a new instance of the HttpListenerException class.

HttpListenerException(Int32)

Inicializa uma nova instância da classe HttpListenerException usando o código de erro especificado.Initializes a new instance of the HttpListenerException class using the specified error code.

HttpListenerException(Int32, String)

Inicializa uma nova instância da classe HttpListenerException usando o código de erro e a mensagem especificados.Initializes a new instance of the HttpListenerException class using the specified error code and message.

HttpListenerException(SerializationInfo, StreamingContext)

Inicializa uma nova instância da classe HttpListenerException das instâncias especificadas das classes SerializationInfo e StreamingContext.Initializes a new instance of the HttpListenerException class from the specified instances of the SerializationInfo and StreamingContext classes.

HttpListenerException()

Inicializa uma nova instância da classe HttpListenerException.Initializes a new instance of the HttpListenerException class.

public:
 HttpListenerException();
public HttpListenerException ();
Public Sub New ()

Comentários

Esse construtor define as ErrorCode Message Propriedades e usando o erro mais recente do Windows.This constructor sets the ErrorCode and Message properties using the most recent Windows error.

Aplica-se a

HttpListenerException(Int32)

Inicializa uma nova instância da classe HttpListenerException usando o código de erro especificado.Initializes a new instance of the HttpListenerException class using the specified error code.

public:
 HttpListenerException(int errorCode);
public HttpListenerException (int errorCode);
new System.Net.HttpListenerException : int -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer)

Parâmetros

errorCode
Int32

Um valor Int32 que identifica o erro que ocorreu.A Int32 value that identifies the error that occurred.

Comentários

O valor de errorCode é usado para definir a ErrorCode propriedade.The value of errorCode is used to set the ErrorCode property.

Aplica-se a

HttpListenerException(Int32, String)

Inicializa uma nova instância da classe HttpListenerException usando o código de erro e a mensagem especificados.Initializes a new instance of the HttpListenerException class using the specified error code and message.

public:
 HttpListenerException(int errorCode, System::String ^ message);
public HttpListenerException (int errorCode, string message);
new System.Net.HttpListenerException : int * string -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer, message As String)

Parâmetros

errorCode
Int32

Um valor Int32 que identifica o erro que ocorreu.A Int32 value that identifies the error that occurred.

message
String

Um String que descreve o erro ocorrido.A String that describes the error that occurred.

Comentários

O valor de errorCode é usado para definir a ErrorCode propriedade.The value of errorCode is used to set the ErrorCode property. O message parâmetro é usado para definir a Message propriedade.The message parameter is used to set the Message property.

Aplica-se a

HttpListenerException(SerializationInfo, StreamingContext)

Inicializa uma nova instância da classe HttpListenerException das instâncias especificadas das classes SerializationInfo e StreamingContext.Initializes a new instance of the HttpListenerException class from the specified instances of the SerializationInfo and StreamingContext classes.

protected:
 HttpListenerException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected HttpListenerException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.HttpListenerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpListenerException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parâmetros

serializationInfo
SerializationInfo

Um objeto SerializationInfo que contém as informações necessárias para desserializar o objeto HttpListenerException.A SerializationInfo object that contains the information required to deserialize the new HttpListenerException object.

streamingContext
StreamingContext

Um objeto StreamingContext.A StreamingContext object.

Aplica-se a