ICorDebugManagedCallback2::ExceptionUnwind 方法

在例外狀況回溯處理期間提供狀態通知。

語法

HRESULT ExceptionUnwind (  
    [in] ICorDebugAppDomain                  *pAppDomain,  
    [in] ICorDebugThread                     *pThread,  
    [in] CorDebugExceptionUnwindCallbackType  dwEventType,  
    [in] DWORD                                dwFlags  
);  

參數

pAppDomain
[in] ICorDebugAppDomain 物件的指標,代表包含已擲回例外狀況之執行緒的應用程式定義域。

pThread
[in] ICorDebugThread 物件的指標,代表已擲回例外狀況的執行緒。

dwEventType
[in] CorDebugExceptionUnwindCallbackType 列舉的值,指定回呼在回溯階段發出訊號的事件。

dwFlags
[in] CorDebugExceptionFlags 列舉的值,指定例外狀況的其他資訊。

備註

在例外狀況處理序的回溯階段,會在各種時間點呼叫 ExceptionUnwind。 在回溯單一例外狀況時,可以呼叫 ExceptionUnwind 一次以上。

如果 dwEventType = DEBUG_EXCEPTION_INTERCEPTED,則指令指標將會在執行緒的分葉框架中,位於導致例外狀況的指令之前的序列點 (這可能在數個指令之前)。

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 2.0 起可用

另請參閱