共用方式為


ICorDebugController::SetAllThreadsDebugState 方法

設定進程中所有受控執行緒的偵錯狀態。

語法

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

參數

state [在]「CorDebugThreadState」 列舉的值,可指定偵錯的執行緒狀態。

pExceptThisThread [在]指向 「ICorDebugThread」 物件的指標,代表要從偵錯狀態設定中免除的執行緒。 如果此值為 Null,則不會豁免任何執行程。

備註

SetAllThreadsDebugState方法可能會影響透過 EnumerateThreads 方法看不到的執行緒,因此必須使用該方法繼續SetAllThreadsDebugState使用該方法暫停SetAllThreadsDebugState的執行緒。

需求

平台: 請參閱 .NET 支援的作業系統

標題: CorDebug.idl、CorDebug.h

圖書館: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起提供

另請參閱