ICorDebugProcess::GetThread 方法

更新:2007 年 11 月

获取具有指定操作系统 (OS) 线程 ID 的此进程的线程。

HRESULT GetThread(
    [in] DWORD dwThreadId,
    [out] ICorDebugThread **ppThread);

参数

  • dwThreadId
    [in] 要检索的线程的 OS 线程 ID。

  • ppThread
    [out] 一个指向 ICorDebugThread 对象地址的指针,该对象表示线程。

要求

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

**头文件:**CorDebug.idl

**库:**CorGuids.lib

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

请参见

参考

ICorDebugProcess

ICorDebugProcess2