共用方式為


ICorDebugModule::GetFunctionFromToken 方法

更新:2007 年 11 月

取得此中繼資料語彙基元指定的函式。

HRESULT GetFunctionFromToken(
    [in] mdMethodDef methodDef,
    [out] ICorDebugFunction **ppFunction
);

參數

  • methodDef
    [in] 參考此函式之中繼資料的 mdMethodDef 中繼資料語彙基元。

  • ppFunction
    [out] ICorDebugFunction 介面物件之位址的指標,這個物件代表該函式。

備註

如果傳入 methodDef 的值未參考 Microsoft Intermediate Language (MSIL) 方法,則 GetFunctionFromToken 方法會傳回 CORDBG_E_FUNCTION_NOT_IL HRESULT。

需求

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

請參閱

參考

ICorDebugModule

ICorDebugModule2