ExceptionDispatchInfo.SetCurrentStackTrace(Exception) 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.
Stocke la trace actuelle dans l’instance Exception spécifiée.
public:
static Exception ^ SetCurrentStackTrace(Exception ^ source);
public static Exception SetCurrentStackTrace (Exception source);
static member SetCurrentStackTrace : Exception -> Exception
Public Shared Function SetCurrentStackTrace (source As Exception) As Exception
Paramètres
- source
- Exception
Exception unthrown.
Retours
Instance d’exception source
avec la trace incluse.
Exceptions
L’argument source
avait la valeur null
.
L’argument source
a été précédemment levée ou avait précédemment une trace de pile stockée dans celui-ci.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour