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: See .NET Framework System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0