Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.85 KB

icorprofilerinfo-getclassidinfo-method.md

File metadata and controls

62 lines (45 loc) · 1.85 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: ICorProfilerInfo::GetClassIDInfo Method
ICorProfilerInfo::GetClassIDInfo Method
03/30/2017
ICorProfilerInfo.GetClassIDInfo
mscorwks.dll
COM
ICorProfilerInfo::GetClassIDInfo
GetClassIDInfo method [.NET Framework profiling]
ICorProfilerInfo::GetClassIDInfo method [.NET Framework profiling]
9e93b99e-5aca-415c-8e37-7f33753b612d
apiref

ICorProfilerInfo::GetClassIDInfo Method

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

Syntax

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

Parameters

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 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.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: [!INCLUDEnet_current_v20plus]

See also