Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.63 KB

icorprofilerinfo-getclassfromtoken-method.md

File metadata and controls

60 lines (44 loc) · 1.63 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: ICorProfilerInfo::GetClassFromToken Method
ICorProfilerInfo::GetClassFromToken Method
03/30/2017
ICorProfilerInfo.GetClassFromToken
mscorwks.dll
COM
ICorProfilerInfo::GetClassFromToken
ICorProfilerInfo::GetClassFromToken method [.NET Framework profiling]
GetClassFromToken method, ICorProfilerInfo interface [.NET Framework profiling]
0afc1197-2a5b-424f-8b82-9cb59a7e00db
apiref

ICorProfilerInfo::GetClassFromToken Method

Gets the ID of the class, given the metadata token. This method is obsolete in .NET Framework version 2.0. Use ICorProfilerInfo2::GetClassFromTokenAndTypeArgs instead.

Syntax

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

Parameters

moduleID
[in] The ID of the module that contains the class.

typeDef
[in] An mdTypeDef metadata token that references the class.

cTypeArgs
[out] A pointer to the class ID.

Remarks

This method is obsolete; instead, use ICorProfilerInfo2::GetClassFromTokenAndTypeArgs for all types.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: 1.0, 1.1

See also