company logo

PropertyDefinition :: indexCount - Get number of indexes for the property

The function returns the number of indexes (sort orders) defined for the property.

When the function is called with an invalid property definition, it throws an exception.

... fragment ( Property &person ) {

  PropertyDefinition   pd(person.propertyDefinition());

  int                  count = pd.indexCount();

  while ( count-- )

    Application::output(indexDefinition(count).name());

}

Return value:  Number of items ( int32  )

The value contains the number of items to be processed or stored in a collection.

Implementation details

int32 PropertyDefinition  :: indexCount (  )