取得中繼資料權杖所指定的函式。
語法
HRESULT GetFunctionFromToken(
[in] mdMethodDef methodDef,
[out] ICorDebugFunction **ppFunction
);
參數
methodDef [在] mdMethodDef 參考函式中繼資料的中繼資料權杖。
ppFunction [出]代表函式之 ICorDebugFunction 介面物件位址的指標。
備註
如果傳入methodDef的值未參考通用中繼語言 (CIL) 方法,則方法GetFunctionFromToken會傳回CORDBG_E_FUNCTION_NOT_IL HRESULT。
需求
平台: 請參閱 .NET 支援的作業系統。
標題: CorDebug.idl、CorDebug.h
圖書館: CorGuids.lib
.NET 版本: 自 .NET Framework 1.0 起提供