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.