共用方式為


ICorDebugThread2::InterceptCurrentException 方法

允許調試程式攔截此線程上的目前例外狀況。

語法

HRESULT InterceptCurrentException (
    [in] ICorDebugFrame  *pFrame
);

參數

pFrame [in]代表使用中堆疊框架之 ICorDebugFrame 的指標。

備註

您可以在例外狀況回呼 (ICorDebugManagedCallback::Exception 或 ICorDebugManagedCallback2::Exception) 和 ICorDebugController::Continue 的相關呼叫之間呼叫方法。 InterceptCurrentException

需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework 版本: 自 2.0 起提供