ExceptionDispatchInfo.Throw Method
Definition
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.
Overloads
Throw() |
Throws the exception that's represented by the current ExceptionDispatchInfo object, after restoring the state that was saved when the exception was captured. |
Throw(Exception) |
Throws the source exception, maintaining the original Watson information and augmenting rather than replacing the original stack trace. |
Throw()
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
Throws the exception that's represented by the current ExceptionDispatchInfo object, after restoring the state that was saved when the exception was captured.
public:
void Throw();
public void Throw ();
member this.Throw : unit -> unit
Public Sub 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.
Applies to
Throw(Exception)
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
- Source:
- ExceptionDispatchInfo.cs
Throws the source exception, maintaining the original Watson information and augmenting rather than replacing the original stack trace.
public:
static void Throw(Exception ^ source);
public static void Throw (Exception source);
static member Throw : Exception -> unit
Public Shared Sub Throw (source As Exception)
Parameters
- source
- Exception
The exception whose state is captured, then rethrown.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應