_Exception.GetBaseException Méthode
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.
Fournit aux objets COM un accès indépendant de la version à la GetBaseException() méthode.
public:
Exception ^ GetBaseException();
public Exception GetBaseException();
abstract member GetBaseException : unit -> Exception
Public Function GetBaseException () As Exception
Retours
Première exception levée dans une chaîne d’exceptions. Si la propriété InnerException de l’exception actuelle est une référence null (Nothing dans Visual Basic), cette propriété retourne l’exception actuelle.
Remarques
Cette méthode permet d’accéder aux classes managées à partir de code non managé et ne doit pas être appelée à partir du code managé.
La Exception.GetBaseException méthode retourne la Exception cause racine d’une ou plusieurs exceptions ultérieures.