ICorDebugValue::GetSize Method

Gets the size, in bytes, of this "ICorDebugValue" object.

Syntax

HRESULT GetSize (  
    [out] ULONG32   *pSize  
);  

Parameters

pSize
[out] The size, in bytes, of this value object.

Remarks

If the value's type is a reference type, this method returns the size of the pointer rather than the size of the object.

The ICorDebugValue::GetSize method returns COR_E_OVERFLOW for objects that are larger than 4 GB on 64-bit platforms. Use the ICorDebugValue3::GetSize64 method instead for objects that are larger than 4 GB.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0

See also