System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw Method

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

Syntax

public void Throw ()

Remarks

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.

Requirements

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