共用方式為


ICorDebugFrame

更新:2007 年 11 月

表示目前堆疊上的框架。

interface ICorDebugFrame : IUnknown {
        
    HRESULT CreateStepper (
        [out] ICorDebugStepper   **ppStepper
    );
        
    HRESULT GetCallee (
        [out] ICorDebugFrame     **ppFrame
    );
        
    HRESULT GetCaller(
        [out] ICorDebugFrame     **ppFrame
    );
        
    HRESULT GetChain (
        [out] ICorDebugChain     **ppChain
    );
        
    HRESULT GetCode (
        [out] ICorDebugCode      **ppCode
    );
        
    HRESULT GetFunction (
        [out] ICorDebugFunction  **ppFunction
    );
        
    HRESULT GetFunctionToken (
        [out] mdMethodDef        *pToken
    );
        
    HRESULT GetStackRange (
        [out] CORDB_ADDRESS      *pStart, 
        [out] CORDB_ADDRESS      *pEnd
    );
        
};

方法

方法

說明

ICorDebugFrame::CreateStepper 方法

取得 ICorDebugStepper,以執行與這個 ICorDebugFrame 相關的逐步作業。

ICorDebugFrame::GetCallee 方法

取得指標,指向目前鏈結中此框架呼叫的 ICorDebugFrame,如果此框架為鏈結中最內部的框架,則傳回 null。

ICorDebugFrame::GetCaller 方法

取得指標,指向目前鏈結中呼叫此框架的 ICorDebugFrame,如果此框架為鏈結中最外部的框架,則傳回 null。

ICorDebugFrame::GetChain 方法

取得 ICorDebugChain 的指標,ICorDebugFrame 是它的一部分。

ICorDebugFrame::GetCode 方法

取得與此堆疊框架相關聯的 ICorDebugCode 指標。

ICorDebugFrame::GetFunction 方法

取得 ICorDebugFunction 的指標,其中包含與此堆疊框架相關聯的程式碼。

ICorDebugFrame::GetFunctionToken 方法

取得此函式的中繼資料語彙基元,函式中包含與這個堆疊框架相關聯的程式碼。

ICorDebugFrame::GetStackRange 方法

取得此 ICorDebugFrame 所表示堆疊框架的絕對位址範圍。

需求

**平台:**請參閱 .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

請參閱

其他資源

偵錯介面