DllNotFoundException Constructeurs

Définition

Initialise une nouvelle instance de la classe DllNotFoundException.

Surcharges

DllNotFoundException()

Initialise une nouvelle instance de la classe DllNotFoundException avec des propriétés par défaut.

DllNotFoundException(String)

Initialise une nouvelle instance de la classe DllNotFoundException 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 classe DllNotFoundException avec un message d'erreur spécifié et une référence à l'exception interne ayant provoqué cette exception.

DllNotFoundException()

Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs

Initialise une nouvelle instance de la classe DllNotFoundException avec des propriétés par défaut.

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

Remarques

Le tableau suivant affiche les valeurs de propriété initiales pour une instance de DllNotFoundException.

Propriété Valeur
InnerException Référence Null (Nothing en Visual Basic).
Message Chaîne du message d'erreur localisé.

S’applique à

DllNotFoundException(String)

Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs

Initialise une nouvelle instance de la classe DllNotFoundException 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 affiche les valeurs de propriété initiales pour une instance de DllNotFoundException.

Propriété Valeur
InnerException Référence Null (Nothing en Visual Basic).
Message Chaîne du message d'erreur.

S’applique à

DllNotFoundException(SerializationInfo, StreamingContext)

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);
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);
new DllNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> DllNotFoundException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Paramètres

info
SerializationInfo

SerializationInfo qui contient les données d'objet sérialisées concernant l'exception levée.

context
StreamingContext

StreamingContext qui contient des informations contextuelles relatives à la source ou à la destination.

Attributs

S’applique à

DllNotFoundException(String, Exception)

Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs
Source:
DllNotFoundException.cs

Initialise une nouvelle instance de la classe DllNotFoundException avec un message d'erreur spécifié et une référence à l'exception interne ayant provoqué 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 ayant provoqué l'exception actuelle. Si le paramètre inner n'est pas null, l'exception actuelle est levée dans un bloc catch qui gère l'exception interne.

Remarques

Une exception levée en conséquence directe d'une exception précédente doit contenir une référence à celle-ci dans la propriété InnerException. La propriété InnerException retourne la valeur passée au constructeur ou la valeur null si la propriété InnerException ne fournit pas la valeur d'exception interne au constructeur.

Le tableau suivant affiche les valeurs de propriété initiales pour une instance de DllNotFoundException.

Propriété Value
InnerException La référence à l'exception interne.
Message Chaîne du message d'erreur.

Voir aussi

S’applique à