Throw Method
Collapse the table of content
Expand the table of content

ExceptionDispatchInfo.Throw Method

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

Throws the exception that is represented by the current ExceptionDispatchInfo object, after restoring the state that was saved when the exception was captured.

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

public void Throw()

When the exception is restored, the following string is inserted in the stack trace to indicate the restore point: "End of stack trace from the previous location where the exception was thrown". This is similar to the way inner exceptions or marshaled exceptions are indicated in stack traces.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft