ICorDebugModule::GetFunctionFromToken 方法

获取元数据标记所指定的函数。

语法

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

参数

methodDef [in]引用 mdMethodDef 函数元数据的元数据令牌。

ppFunction [out]指向表示函数的 ICorDebugFunction 接口对象的地址的指针。

注解

如果传入methodDef的值不引用公共中间语言(CIL)方法,该方法GetFunctionFromToken将返回CORDBG_E_FUNCTION_NOT_IL HRESULT。

要求

平台:请参阅系统要求

标头:CorDebug.idl、CorDebug.h

库:CorGuids.lib

.NET Framework 版本:自 1.0 起可用