ExceptionDispatchInfo.SetCurrentStackTrace(Exception) Methode

Definition

Speichert die aktuelle Stapelablaufverfolgung in der angegebenen Exception Instanz.

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

Parameter

source
Exception

Die ungerownte Ausnahme.

Gibt zurück

Die source Ausnahmeinstanz, in der die Stapelablaufverfolgung enthalten ist.

Ausnahmen

Das source Argument war null.

Das source Argument wurde zuvor ausgelöst oder hatte zuvor eine Stapelablaufverfolgung darin gespeichert.

Gilt für: