ICorProfilerInfo::GetObjectSize Method
Gets the size of a specified object.
HRESULT GetObjectSize(
[in] ObjectID objectId,
[out] ULONG *pcSize);
Parameters
objectId
[in] The ID of the object.pcSize
[out] A pointer to the object's size, in bytes.
Remarks
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.
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: CorProf.idl
Library: CorGuids.lib
.NET Framework Version: 2.0