company logo

Property :: autoSelect - Automatic instance selection

The function automatically selects an instance in the property handle. When the collection contains only one instance, this instance is selected. Otherwise, the instance currently located will be selected.

When an instance is already selected in the property handle, the function does not change the selection. When no instance could be selected, the property handle remains in unselected state.

When the property handle is not valid, the function throws an exception.

Return value:  Property reference ( odaba::Property & )

A property handle refers to a (usually) opened property. Invalid properties may cause an exception.

Implementation details

odaba::Property & Property  :: autoSelect (  )