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

ExceptionDispatchInfo.Throw Method ()

.NET Framework (current version)
 

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft