ICorDebugController::SetAllThreadsDebugState 方法

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

Syntax

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

参数

state [in]“CorDebugThreadState”枚举的值,指定用于调试的线程状态。

pExceptThisThread [in]指向“ICorDebugThread”对象的指针,该对象表示要从调试状态设置中免除的线程。 如果此值为 null,则不会免除任何线程。

注解

该方法SetAllThreadsDebugState可能会影响通过 EnumerateThreads 方法不可见的线程,因此需要使用该方法恢复SetAllThreadsDebugState挂起SetAllThreadsDebugState的线程。

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorDebug.idl、CorDebug.h

图书馆: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起可用

另请参阅