ObjectNotFoundException 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 ObjectNotFoundException.
Surcharges
| Nom | Description |
|---|---|
| ObjectNotFoundException() |
Initialise une nouvelle instance de ObjectNotFoundException. |
| ObjectNotFoundException(String) |
Initialise une nouvelle instance d’un ObjectNotFoundException message d’erreur spécialisé. |
| ObjectNotFoundException(String, Exception) |
Initialise une nouvelle instance de ObjectNotFoundException classe qui utilise un message d’erreur spécifié et une référence à l’exception interne. |
Remarques
Pour plus d’informations sur la gestion des exceptions dans votre code, consultez Exception.
ObjectNotFoundException()
Initialise une nouvelle instance de ObjectNotFoundException.
public:
ObjectNotFoundException();
public ObjectNotFoundException();
Public Sub New ()
Remarques
Pour plus d’informations sur la gestion des exceptions dans votre code, consultez Exception.
S’applique à
ObjectNotFoundException(String)
Initialise une nouvelle instance d’un ObjectNotFoundException message d’erreur spécialisé.
public:
ObjectNotFoundException(System::String ^ message);
public ObjectNotFoundException(string message);
new System.Data.ObjectNotFoundException : string -> System.Data.ObjectNotFoundException
Public Sub New (message As String)
Paramètres
- message
- String
Message qui décrit l’erreur.
Remarques
Pour plus d’informations sur la gestion des exceptions dans votre code, consultez Exception.
S’applique à
ObjectNotFoundException(String, Exception)
Initialise une nouvelle instance de ObjectNotFoundException classe qui utilise un message d’erreur spécifié et une référence à l’exception interne.
public:
ObjectNotFoundException(System::String ^ message, Exception ^ innerException);
public ObjectNotFoundException(string message, Exception innerException);
new System.Data.ObjectNotFoundException : string * Exception -> System.Data.ObjectNotFoundException
Public Sub New (message As String, innerException As Exception)
Paramètres
- message
- String
Message qui décrit l’erreur.
- innerException
- Exception
Exception qui est la cause de l’exception actuelle ou une référence Null (Nothing en Visual Basic) si aucune exception interne n’est spécifiée.
Remarques
Pour plus d’informations sur la gestion des exceptions dans votre code, consultez Exception.