ICorProfilerInfo::GetClassFromObject Method

 

Gets the ClassID of an object, given its ObjectID.

HRESULT GetClassFromObject(
    [in]  ObjectID objectId,
    [out] ClassID *pClassId);

objectId

[in] The ID of the object for which to get the ClassID.

pClassId

[out] A pointer to the returned ClassID.

A null pClassId indicates that objectId has a type that is unloading.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0

Show: