ICorProfilerInfo::GetFunctionFromToken 方法

获取函数的 ID。 此方法在 .NET Framework 2.0 版中已过时。 改用 ICorProfilerInfo2::GetFunctionFromTokenAndTypeArgs 方法。

HRESULT GetFunctionFromToken(
    [in]  ModuleID   moduleId,
    [in]  mdToken    token,
    [out] FunctionID *pFunctionId);

备注

GetFunctionFromToken 方法将对泛型函数或泛型类型中的函数无效;现在它已过时。 对所有函数使用 ICorProfilerInfo2::GetFunctionFromTokenAndTypeArgs

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorProf.idl、CorProf.h

**库:**CorGuids.lib

**.NET Framework 版本:**1.1、1.0

请参见

参考

ICorProfilerInfo 接口