ExceptionDispatchInfo.SetCurrentStackTrace(Exception) Méthode

Définition

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.

S’applique à