获取由元数据标记指定的函数。
HRESULT GetFunctionFromToken(
[in] mdMethodDef methodDef,
[out] ICorDebugFunction **ppFunction
);
参数
methodDef
[in] 一个引用该函数的元数据的 mdMethodDef 元数据标记。ppFunction
[out] 一个指针,它指向表示该函数的 ICorDebugFunction 接口对象的地址。
备注
如果传入 methodDef 的值没有引用 Microsoft 中间语言 (MSIL) 方法,则 GetFunctionFromToken 方法将返回 CORDBG_E_FUNCTION_NOT_IL HRESULT。
要求
**平台:**请参见 .NET Framework 系统要求。
头文件: CorDebug.idl、CorDebug.h
**库:**CorGuids.lib
**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0