HttpListenerException Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe HttpListenerException.
Surcharges
| Nom | Description |
|---|---|
| HttpListenerException() |
Initialise une nouvelle instance de la classe HttpListenerException. |
| HttpListenerException(Int32) |
Initialise une nouvelle instance de la HttpListenerException classe à l’aide du code d’erreur spécifié. |
| HttpListenerException(Int32, String) |
Initialise une nouvelle instance de la HttpListenerException classe à l’aide du code d’erreur et du message spécifiés. |
| HttpListenerException(SerializationInfo, StreamingContext) |
Obsolète.
Initialise une nouvelle instance de la HttpListenerException classe à partir des instances spécifiées des classes et StreamingContext des SerializationInfo classes. |
HttpListenerException()
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
Initialise une nouvelle instance de la classe HttpListenerException.
public:
HttpListenerException();
public HttpListenerException();
Public Sub New ()
Remarques
Ce constructeur définit les propriétés et Message les ErrorCode propriétés à l’aide de l’erreur Windows la plus récente.
S’applique à
HttpListenerException(Int32)
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
Initialise une nouvelle instance de la HttpListenerException classe à l’aide du code d’erreur spécifié.
public:
HttpListenerException(int errorCode);
public HttpListenerException(int errorCode);
new System.Net.HttpListenerException : int -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer)
Paramètres
Remarques
La valeur de celle-ci errorCode est utilisée pour définir la ErrorCode propriété.
S’applique à
HttpListenerException(Int32, String)
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
Initialise une nouvelle instance de la HttpListenerException classe à l’aide du code d’erreur et du message spécifiés.
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)
Paramètres
Remarques
La valeur de celle-ci errorCode est utilisée pour définir la ErrorCode propriété. Le message paramètre est utilisé pour définir la Message propriété.
S’applique à
HttpListenerException(SerializationInfo, StreamingContext)
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
- Source:
- HttpListenerException.cs
Attention
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initialise une nouvelle instance de la HttpListenerException classe à partir des instances spécifiées des classes et StreamingContext des SerializationInfo classes.
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);
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}")>]
new System.Net.HttpListenerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpListenerException
new System.Net.HttpListenerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpListenerException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Paramètres
- serializationInfo
- SerializationInfo
Objet SerializationInfo qui contient les informations requises pour désérialiser le nouvel HttpListenerException objet.
- streamingContext
- StreamingContext
Objet StreamingContext.
- Attributs