SourceException Property
Collapse the table of content
Expand the table of content

ExceptionDispatchInfo.SourceException Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the exception that is represented by the current instance.

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

public Exception SourceException { get; }

Property Value

Type: System.Exception
The exception that is represented by the current instance.

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 Throw method to restore the state of the captured exception and throw it.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft