getInstanceSizeForProperty
getInstanceSizeForProperty(propertyName: String): Integer64;
The getInstanceSizeForProperty method of the Object class returns the byte size on the receiving instance of the property specified in the propertyName parameter.
All property types are supported; that is, primitive properties, blobs, exclusive collections, and dynamic properties. Primitive properties and object references are embedded in the object, so the value returned is the size of the underlying data type, regardless of whether a value has been assigned to the property.
Blobs have a fixed 8‑byte overhead in addition to any assigned value. Exclusive collections do not have a size unless the collection has been instantiated. The value returned for a dynamic property is always zero (0) if a value has not been assigned, or if the property has been set to null. The value returned for fixed‑length primitive and object reference dynamic properties is the size of the underlying data type of the property only if a value has been assigned. The value returned for variable‑length primitive dynamic properties, Binary, String, and StringUtf8 primitive types includes the fixed overhead and the size in bytes of the assigned value.
2022.0.06, 2025 R2, and higher
