获取由元数据令牌指定的函数。
Syntax
HRESULT GetFunctionFromToken(
[in] mdMethodDef methodDef,
[out] ICorDebugFunction **ppFunction
);
参数
methodDef [in]引用 mdMethodDef 函数元数据的元数据令牌。
ppFunction [out]指向表示函数的 ICorDebugFunction 接口对象的地址的指针。
注解
如果传入methodDef的值不引用公共中间语言(CIL)方法,该方法GetFunctionFromToken将返回CORDBG_E_FUNCTION_NOT_IL HRESULT。
要求
平台: 请参阅 .NET 支持的作系统。
页眉: CorDebug.idl、CorDebug.h
图书馆: CorGuids.lib
.NET 版本: 自 .NET Framework 1.0 起可用