HttpListenerException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy HttpListenerException.

Przeciążenia

HttpListenerException()

Inicjuje nowe wystąpienie klasy HttpListenerException.

HttpListenerException(Int32)

Inicjuje HttpListenerException nowe wystąpienie klasy przy użyciu określonego kodu błędu.

HttpListenerException(Int32, String)

Inicjuje HttpListenerException nowe wystąpienie klasy przy użyciu określonego kodu błędu i komunikatu.

HttpListenerException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie HttpListenerException klasy z określonych wystąpień SerializationInfo klas i StreamingContext .

HttpListenerException()

Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs

Inicjuje nowe wystąpienie klasy HttpListenerException.

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

Uwagi

Ten konstruktor ustawia ErrorCode właściwości i Message przy użyciu najnowszego błędu systemu Windows.

Dotyczy

HttpListenerException(Int32)

Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs

Inicjuje HttpListenerException nowe wystąpienie klasy przy użyciu określonego kodu błędu.

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

Parametry

errorCode
Int32

Int32 Wartość identyfikująca błąd, który wystąpił.

Uwagi

Wartość errorCode jest używana do ustawiania ErrorCode właściwości .

Dotyczy

HttpListenerException(Int32, String)

Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs

Inicjuje HttpListenerException nowe wystąpienie klasy przy użyciu określonego kodu błędu i komunikatu.

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)

Parametry

errorCode
Int32

Int32 Wartość identyfikująca błąd, który wystąpił.

message
String

Element String opisujący błąd, który wystąpił.

Uwagi

Wartość errorCode jest używana do ustawiania ErrorCode właściwości . Parametr message służy do ustawiania Message właściwości .

Dotyczy

HttpListenerException(SerializationInfo, StreamingContext)

Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs
Źródło:
HttpListenerException.cs

Przestroga

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Inicjuje nowe wystąpienie HttpListenerException klasy z określonych wystąpień SerializationInfo klas i StreamingContext .

protected:
 HttpListenerException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected HttpListenerException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Net.HttpListenerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpListenerException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parametry

serializationInfo
SerializationInfo

SerializationInfo Obiekt zawierający informacje wymagane do deserializacji nowego HttpListenerException obiektu.

streamingContext
StreamingContext

Obiekt StreamingContext.

Atrybuty

Zobacz też

Dotyczy