Udostępnij za pośrednictwem


ICorProfilerInfo::GetClassFromToken — Metoda

Pobiera identyfikator klasy, biorąc pod uwagę token metadanych. Ta metoda jest przestarzała w .NET Framework w wersji 2.0. Zamiast tego użyj elementu ICorProfilerInfo2::GetClassFromTokenAndTypeArgs .

Składnia

HRESULT GetClassFromToken(  
    [in]  ModuleID  moduleId,  
    [in]  mdTypeDef typeDef,  
    [out] ClassID   *pClassId);  

Parametry

moduleID
[in] Identyfikator modułu, który zawiera klasę.

typeDef
[in] Token mdTypeDef metadanych odwołujący się do klasy.

cTypeArgs
[out] Wskaźnik do identyfikatora klasy.

Uwagi

Ta metoda jest przestarzała; zamiast tego należy użyć dla ICorProfilerInfo2::GetClassFromTokenAndTypeArgs wszystkich typów.

Wymagania

Platformy: Zobacz Wymagania systemowe.

Nagłówka: CorProf.idl, CorProf.h

Biblioteki: CorGuids.lib

.NET Framework wersje: 1.0, 1.1

Zobacz też