Metodo ICorProfilerInfo::GetFunctionFromToken

Ottiene l'ID di una funzione. Questo metodo è obsoleto in .NET Framework versione 2.0. Usare invece il metodo ICorProfilerInfo2::GetFunctionFromTokenAndTypeArgs .

Sintassi

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

Osservazioni

Il GetFunctionFromToken metodo non funzionerà per funzioni o funzioni generici in tipi generici. È ora obsoleto. Usare ICorProfilerInfo2::GetFunctionFromTokenAndTypeArgs per tutte le funzioni.

Requisiti

Piattaforme: vedere Requisiti di sistema di .NET Framework.

Intestazione: CorProf.idl, CorProf.h

Libreria: CorGuids.lib

Versioni di .NET Framework: 1.1, 1.0

Vedi anche