ICorDebugThread 介面ICorDebugThread Interface

表示處理序中的執行緒。Represents a thread in a process. ICorDebugThread 執行個體的存留期與其所表示的執行緒之存留期相同。The lifetime of an ICorDebugThread instance is the same as the lifetime of the thread it represents.

方法Methods

方法Method 描述Description
ClearCurrentException 方法ClearCurrentException Method 這個方法尚未實作。This method is not implemented. 不要使用它。Do not use it.
CreateEval 方法CreateEval Method 建立在這個上操作的 ICorDebugEval 物件 ICorDebugThreadCreates an ICorDebugEval object that operates on this ICorDebugThread.
CreateStepper 方法CreateStepper Method 建立 ICorDebugStepper 物件,這個物件可讓您逐步執行此中的現用框架 ICorDebugThreadCreates an ICorDebugStepper object that allows stepping through the active frame in this ICorDebugThread.
EnumerateChains 方法EnumerateChains Method 取得 ICorDebugChainEnum 列舉值的介面指標,其中包含此中的所有堆疊鏈 ICorDebugThreadGets an interface pointer to an ICorDebugChainEnum enumerator that contains all the stack chains in this ICorDebugThread.
GetActiveChain 方法GetActiveChain Method 取得這個上使用中 ICorDebugChain 的介面指標 ICorDebugThreadGets an interface pointer to the active ICorDebugChain on this ICorDebugThread.
GetActiveFrame 方法GetActiveFrame Method 取得這個上使用中 ICorDebugFrame 的介面指標 ICorDebugThreadGets an interface pointer to the active ICorDebugFrame on this ICorDebugThread.
GetAppDomain 方法GetAppDomain Method 取得目前正在執行之應用程式域的介面指標 ICorDebugThreadGets an interface pointer to the application domain in which this ICorDebugThread is currently executing.
GetCurrentException 方法GetCurrentException Method 取得 ICorDebugValue 物件的介面指標,該物件代表 managed 程式碼目前正在擲回的例外狀況。Gets an interface pointer to an ICorDebugValue object that represents an exception currently being thrown by managed code.
GetDebugState 方法GetDebugState Method 取得 CorDebugThreadState 值,這個值會描述這個的目前偵錯工具狀態 ICorDebugThreadGets a CorDebugThreadState value that describes the current debug state of this ICorDebugThread.
GetHandle 方法GetHandle Method 取得這個之使用中部分的目前控制碼 ICorDebugThreadGets the current handle for the active part of this ICorDebugThread.
GetID 方法GetID Method 取得這個之使用中部分的目前作業系統識別碼 ICorDebugThreadGets the current operating system identifier of the active part of this ICorDebugThread.
GetObject 方法GetObject Method 取得 common language runtime (CLR) 執行緒的介面指標。Gets an interface pointer to the common language runtime (CLR) thread.
GetProcess 方法GetProcess Method 取得這個構成元件之進程的介面指標 ICorDebugThreadGets an interface pointer to the process of which this ICorDebugThread forms a part.
GetRegisterSet 方法GetRegisterSet Method 取得與此相關聯之註冊集的介面指標 ICorDebugThreadGets an interface pointer to the register set associated with this ICorDebugThread.
GetUserState 方法GetUserState Method 取得 CorDebugUserState 值的位元組合,這些值會描述這個的目前狀態 ICorDebugThreadGets a bitwise combination of CorDebugUserState values that describe the current state of this ICorDebugThread.
SetDebugState 方法SetDebugState Method 設定值的位元組合 CorDebugThreadState ,這些值會描述這個的偵錯工具狀態 ICorDebugThreadSets a bitwise combination of CorDebugThreadState values that describe the debugging state of this ICorDebugThread.

備註Remarks

注意

這個介面不支援跨電腦或跨處理序的遠端呼叫。This interface does not support being called remotely, either cross-machine or cross-process.

規格需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 1.0 起可用Available since 1.0.NET Framework Versions: 自 1.0 起可用Available since 1.0

另請參閱See also