共用方式為


ICorDebugController::SetAllThreadsDebugState 方法

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

語法

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

參數

state
[in] "CorDebugThreadState" 列舉的值,該列舉指定執行緒狀態以進行偵錯。

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

備註

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

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 1.0 起提供

另請參閱