count

Navigation:  NxLib API > C++ Interface > NxLibItem >

count

Previous pageReturn to chapter overviewNext page

Retrieves the number of subitems of an Object or Array. Calling the function on scalar nodes will return an error.

Note: Calling this function on a Binary node will retrieve the binary data size in bytes, but it is recommended to use getBinaryDataInfo instead to get and verify all format properties of the binary blob before retrieving it.

Signatures

Variants throwing exceptions on API errors:

int count() const

Variants returning API errors as int* parameter:

int count(int* returnCode) const

Parameters

returnCode

The error code returned when accessing the item.

Return Value

The number of subitems.