HttpListenerException Konstruktory

Definice

Inicializuje novou instanci HttpListenerException třídy .

Přetížení

HttpListenerException()

Inicializuje novou instanci HttpListenerException třídy .

HttpListenerException(Int32)

Inicializuje novou instanci HttpListenerException třídy pomocí zadaného kódu chyby.

HttpListenerException(Int32, String)

Inicializuje novou instanci HttpListenerException třídy pomocí zadaného kódu chyby a zprávy.

HttpListenerException(SerializationInfo, StreamingContext)
Zastaralé.

Inicializuje novou instanci HttpListenerException třídy ze zadaných SerializationInfo instancí tříd a StreamingContext .

HttpListenerException()

Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs

Inicializuje novou instanci HttpListenerException třídy .

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

Poznámky

Tento konstruktor nastaví ErrorCode vlastnosti a Message pomocí nejnovější chyby systému Windows.

Platí pro

HttpListenerException(Int32)

Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs

Inicializuje novou instanci HttpListenerException třídy pomocí zadaného kódu chyby.

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

Hodnota Int32 , která identifikuje chybu, ke které došlo.

Poznámky

Hodnota slouží errorCode k nastavení ErrorCode vlastnosti .

Platí pro

HttpListenerException(Int32, String)

Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs

Inicializuje novou instanci HttpListenerException třídy pomocí zadaného kódu chyby a zprávy.

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

Hodnota Int32 , která identifikuje chybu, ke které došlo.

message
String

A String , který popisuje chybu, ke které došlo.

Poznámky

Hodnota slouží errorCode k nastavení ErrorCode vlastnosti . Parametr message se používá k nastavení Message vlastnosti .

Platí pro

HttpListenerException(SerializationInfo, StreamingContext)

Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs
Zdroj:
HttpListenerException.cs

Upozornění

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

Inicializuje novou instanci HttpListenerException třídy ze zadaných SerializationInfo instancí tříd a 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

Objekt SerializationInfo , který obsahuje informace potřebné k deserializaci nového HttpListenerException objektu.

streamingContext
StreamingContext

Objekt StreamingContext .

Atributy

Viz také

Platí pro