DkmClrRuntimeInstance.GetCorThread(DkmThread) 方法

定义

提供对 ICorDebugThread 对象的直接访问,表达式计算器或其他组件可以使用此对象检查应用程序域。

返回的接口只能用于检查目标进程,绝不能用于控制执行 (无单步执行、无断点、不继续等) 。 此操作不受支持,将导致未定义的行为。

位置约束:必须从监视器组件 (组件级别 100000) 中调用 API < 。

public:
 Microsoft::VisualStudio::CorDebugInterop::ICorDebugThread ^ GetCorThread(Microsoft::VisualStudio::Debugger::DkmThread ^ Thread);
public Microsoft.VisualStudio.CorDebugInterop.ICorDebugThread GetCorThread (Microsoft.VisualStudio.Debugger.DkmThread Thread);
member this.GetCorThread : Microsoft.VisualStudio.Debugger.DkmThread -> Microsoft.VisualStudio.CorDebugInterop.ICorDebugThread
Public Function GetCorThread (Thread As DkmThread) As ICorDebugThread

参数

Thread
DkmThread

中应映射到 Cordebug.idl 线程的 DkmThread 对象。

返回

ICorDebugThread

弄表示应用域检查的 ICorDebug 接口。

适用于