ICorDebugChain::GetActiveFrame 方法
更新:2007 年 11 月
取得鏈結上的使用中 (也就是最新的) 框架。
HRESULT GetActiveFrame (
[out] ICorDebugFrame **ppFrame
);
參數
- ppFrame
[out] ICorDebugFrame 物件之位址的指標,這個物件代表鏈結上使用中 (也就是最新的) 框架。
備註
如果沒有可用的 Managed 堆疊框架,則 ppFrame 會設為 null。
如果使用中框架無法使用,則呼叫會成功,而且 ppFrame 為 null。由於 CHAIN_ENTER_UNMANAGED,已初始化的鏈結無法使用使用中框架,而由於 CHAIN_CLASS_INIT,某些已初始化的鏈結也無法使用。請參閱 CorDebugChainReason 列舉型別。
需求
**平台:**請參閱 .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