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 起提供