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 de pile actuelle dans l’instance spécifiée Exception .
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 de désrown.
Retours
Instance source d’exception avec la trace de pile incluse.
Exceptions
L’argument source était null.
L’argument source a été précédemment levée ou avait une trace de pile stockée dans celle-ci.