ICorProfilerInfo::GetObjectSize Method

Gets the size of a specified object.

HRESULT GetObjectSize(
    [in]  ObjectID objectId,
    [out] ULONG  *pcSize);


[in] The ID of the object.


[out] A pointer to the object's size, in bytes.

Different objects of the same types often have the same size. However, some types, such as arrays or strings, may have a different size for each object.

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

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0