ICorDebugController::SetAllThreadsDebugState 方法

设置进程中所有托管线程的调试状态。

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

参数

  • state
    [in] 一个指定调试线程状态的 CorDebugThreadState 枚举 枚举值。

  • pExceptThisThread
    [in] 一个指向 ICorDebugThread 接口 对象的指针,该对象表示将无需进行调试状态设置的线程。 如果此值为 Null,则无需对线程设置调试状态。

备注

SetAllThreadsDebugState 方法可能会影响无法通过 ICorDebugController::EnumerateThreads 方法 看到的线程,所以通过 SetAllThreadsDebugState 方法挂起的线程需要通过 SetAllThreadsDebugState 方法继续。

要求

**平台:**请参见 .NET Framework 系统要求

头文件: CorDebug.idl、CorDebug.h

**库:**CorGuids.lib

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

请参见

参考

ICorDebugController 接口