DllNotFoundException 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 DllNotFoundException.
Surcharges
| Nom | Description |
|---|---|
| DllNotFoundException() |
Initialise une nouvelle instance de la DllNotFoundException classe avec des propriétés par défaut. |
| DllNotFoundException(String) |
Initialise une nouvelle instance de la DllNotFoundException classe avec un message d’erreur spécifié. |
| DllNotFoundException(SerializationInfo, StreamingContext) |
Obsolète.
Initialise une nouvelle instance de la classe DllNotFoundException avec des données sérialisées. |
| DllNotFoundException(String, Exception) |
Initialise une nouvelle instance de la DllNotFoundException classe avec un message d’erreur spécifié et une référence à l’exception interne qui est la cause de cette exception. |
DllNotFoundException()
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
Initialise une nouvelle instance de la DllNotFoundException classe avec des propriétés par défaut.
public:
DllNotFoundException();
public DllNotFoundException();
Public Sub New ()
Remarques
Le tableau suivant présente les valeurs de propriété initiales d’une instance de DllNotFoundException.
| Propriété | Valeur |
|---|---|
| InnerException | Référence Null (Nothing en Visual Basic). |
| Message | Chaîne de message d’erreur localisée. |
S’applique à
DllNotFoundException(String)
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
Initialise une nouvelle instance de la DllNotFoundException classe avec un message d’erreur spécifié.
public:
DllNotFoundException(System::String ^ message);
public DllNotFoundException(string message);
public DllNotFoundException(string? message);
new DllNotFoundException : string -> DllNotFoundException
Public Sub New (message As String)
Paramètres
- message
- String
Message d’erreur qui explique la raison de l’exception.
Remarques
Le tableau suivant présente les valeurs de propriété initiales d’une instance de DllNotFoundException.
| Propriété | Valeur |
|---|---|
| InnerException | Référence Null (Nothing en Visual Basic). |
| Message | Chaîne de message d’erreur. |
S’applique à
DllNotFoundException(SerializationInfo, StreamingContext)
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.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 classe DllNotFoundException avec des données sérialisées.
protected:
DllNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[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 DllNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected DllNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<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 DllNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> DllNotFoundException
new DllNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> DllNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Paramètres
- info
- SerializationInfo
SerializationInfo Qui contient les données d’objet sérialisées sur l’exception levée.
- context
- StreamingContext
Qui StreamingContext contient des informations contextuelles sur la source ou la destination.
- Attributs
S’applique à
DllNotFoundException(String, Exception)
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
- Source:
- DllNotFoundException.cs
Initialise une nouvelle instance de la DllNotFoundException classe avec un message d’erreur spécifié et une référence à l’exception interne qui est la cause de cette exception.
public:
DllNotFoundException(System::String ^ message, Exception ^ inner);
public DllNotFoundException(string message, Exception inner);
public DllNotFoundException(string? message, Exception? inner);
new DllNotFoundException : string * Exception -> DllNotFoundException
Public Sub New (message As String, inner As Exception)
Paramètres
- message
- String
Message d’erreur qui explique la raison de l’exception.
- inner
- Exception
Exception qui est la cause de l’exception actuelle. Si le inner paramètre n’est pas null, l’exception actuelle est levée dans un catch bloc qui gère l’exception interne.
Remarques
Une exception levée en conséquence directe d’une exception précédente doit inclure une référence à l’exception précédente dans la InnerException propriété. La InnerException propriété retourne la même valeur que celle passée dans le constructeur, ou null si la InnerException propriété ne fournit pas la valeur d’exception interne au constructeur.
Le tableau suivant présente les valeurs de propriété initiales d’une instance de DllNotFoundException.
| Propriété | Valeur |
|---|---|
| InnerException | Référence d’exception interne. |
| Message | Chaîne de message d’erreur. |