System.Runtime.ExceptionServices.ExceptionDispatchInfo.SourceException Property

Gets the exception that is represented by the current instance.

Syntax

public Exception SourceException { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property is used by the Task Parallel Library, for example, to combine multiple exceptions in an AggregateException object. It is not intended to be used by application code. Use the ExceptionDispatchInfo.Throw method to restore the state of the captured exception and throw it.

Requirements

Namespace: System.Runtime.ExceptionServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0