共用方式為


ICorDebugController::EnumerateThreads 方法

更新:2007 年 11 月

取得處理序中作用中之 Managed 執行緒的列舉值。

HRESULT EnumerateThreads (
    [out] ICorDebugThreadEnum **ppThreads
);

參數

  • ppThreads
    [out] ICorDebugThreadEnum 物件位址的指標,表示在處理序中為使用中之所有 Managed 執行緒的列舉值。

備註

在分派 ICorDebugManagedCallback::CreateThread 回呼之後,以及分派 ICorDebugManagedCallback::ExitThread 回呼之前,執行緒會視為使用中。Managed 執行緒的堆疊上不一定有任何 Managed 框架。即使在 ICorDebugManagedCallback::CreateProcess 回呼之前,也可列舉執行緒。此列舉型別自然會是空白的。

需求

**平台:**請參閱 .NET Framework 系統需求

**標頭:**CorDebug.idl

**程式庫:**CorGuids.lib

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

請參閱

參考

ICorDebugController