ExceptionDispatchInfo.SetCurrentStackTrace(Exception) Metod

Definition

Lagrar den aktuella stackspårningen i den angivna Exception instansen.

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

Parametrar

source
Exception

Det inåtväxade undantaget.

Returer

Undantagsinstansen source med stackspårningen inkluderad.

Undantag

Argumentet source var null.

Argumentet source kastades tidigare eller hade tidigare en stackspårning lagrad i den.

Gäller för