Freigeben über


ICorProfilerInfo::GetClassIDInfo Method

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

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

Parameters

Parameter Description

classId

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

pModuleId

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

pTypeDefToken

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

Remarks

The profiler code can call ICorProfilerInfo::GetModuleMetaData Method to obtain a Metadata (Unmanaged API Reference) 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 Method.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorProfilerInfo Interface