ICorDebugChain 介面ICorDebugChain Interface

表示實體或邏輯呼叫堆疊的區段。Represents a segment of a physical or logical call stack.


方法Method 描述Description
EnumerateFrames 方法EnumerateFrames Method 取得枚舉器,其中包含鏈中的所有 managed 堆疊框架(從最新的框架開始)。Gets an enumerator that contains all the managed stack frames in the chain, starting with the most recent frame.
GetActiveFrame 方法GetActiveFrame Method 取得使用中的 (,也就是鏈上最新的) 框架。Gets the active (that is, most recent) frame on the chain.
GetCallee 方法GetCallee Method 取得此鏈所呼叫的鏈。Gets the chain that was called by this chain.
GetCaller 方法GetCaller Method 取得呼叫此鏈的鏈。Gets the chain that called this chain.
GetContext 方法GetContext Method 未實作。Not implemented.
GetNext 方法GetNext Method 取得執行緒的下一鏈框架。Gets the next chain of frames for the thread.
GetPrevious 方法GetPrevious Method 取得執行緒的上一鏈框架。Gets the previous chain of frames for the thread.
GetReason 方法GetReason Method 取得此呼叫鏈創世的原因。Gets the reason for the genesis of this calling chain.
GetRegisterSet 方法GetRegisterSet Method 取得此鏈之使用中部分的註冊集。Gets the register set for the active part of this chain.
GetStackRange 方法GetStackRange Method 取得此鏈之堆疊區段的位址範圍。Gets the address range of the stack segment for this chain.
GetThread 方法GetThread Method 取得此呼叫鏈所屬的實體執行緒。Gets the physical thread this call chain is part of.
IsManaged 方法IsManaged Method 取得值,這個值表示此鏈是否正在執行 managed 程式碼。Gets a value that indicates whether this chain is running managed code.


鏈中的堆疊框架會佔用連續的堆疊空間,並共用相同的執行緒和內容。The stack frames in a chain occupy contiguous stack space and share the same thread and context. 連鎖可能代表受控或非受控碼鏈。A chain may represent either managed or unmanaged code chains. 空的 ICorDebugChain 實例代表非受控碼鏈。An empty ICorDebugChain instance represents an unmanaged code chain.


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


平台: 請參閱 系統需求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