共用方式為


ICorDebugController::SetAllThreadsDebugState 方法

更新:2007 年 11 月

設定此處理序中所有 Managed 執行緒的偵錯狀態。

HRESULT SetAllThreadsDebugState (
    [in] CorDebugThreadState  state,
    [in] ICorDebugThread      *pExceptThisThread
);

參數

  • state
    [in] 指定執行緒偵錯狀態之 CorDebugThreadState 列舉型別的值。

  • pExceptThisThread
    [in] ICorDebugThread 物件的指標,代表要從偵錯狀態設定中豁免的執行緒。如果這個值為 null,則不會豁免任何執行緒。

備註

SetAllThreadsDebugState 方法可透過 ICorDebugController::EnumerateThreads 方法影響不可見的執行緒,所以使用此 SetAllThreadsDebugState 方法暫止的執行緒也需要使用此 SetAllThreadsDebugState 方法繼續。

需求

**平台:**請參閱 .NET Framework 系統需求

**標頭:**CorDebug.idl

**程式庫:**CorGuids.lib

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

請參閱

參考

ICorDebugController