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 起可用

另请参阅