Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ExceptionDispatchInfo.SourceException Property
Definition
- Namespace:
- System.Runtime.ExceptionServices
- Assemblies:
- mscorlib.dll, System.Runtime.dll
- Assemblies:
- netstandard.dll, System.Runtime.dll
- Assembly:
- System.Runtime.dll
- Assembly:
- mscorlib.dll
- Assembly:
- netstandard.dll
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the exception that's represented by the current instance.
public:
property Exception ^ SourceException { Exception ^ get(); };
public Exception SourceException { get; }
member this.SourceException : Exception
Public ReadOnly Property SourceException As Exception
Property Value
The exception that's represented by the current instance.
Remarks
This property is used by the Task Parallel Library, for example, to combine multiple exceptions in an AggregateException object. It's not intended to be used by application code. Use the Throw method to restore the state of the captured exception and throw it.
Applies to
Feedback
Was this page helpful?
