Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ICorProfilerInfo::GetClassIDInfo Method
Collapse the table of content
Expand the table of content

ICorProfilerInfo::GetClassIDInfo Method

Gets the parent module and the metadata token for the specified class.

    [in]  ClassID   classId,
    [out] ModuleID  *pModuleId,
    [out] mdTypeDef *pTypeDefToken);


[in] The ID of the class for which to get the information.


[out] A pointer to the ID of the parent module of the class.


[out] A pointer to the metadata token for the class.

The profiler code can call ICorProfilerInfo::GetModuleMetaData to obtain a metadata interface for a given module. The metadata token that is returned to the location referenced by pTypeDefToken can then be used to access the metadata for the class.

To get more information for generic types, use ICorProfilerInfo2::GetClassIDInfo2.

Platforms: See .NET Framework System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Community Additions

© 2015 Microsoft