company logo

Provide property handle

The function returns the property handle for the property path passed in vSimplePath.

When the property could not be found or when the current property handle is not valid, the function throws an exception. Otherwise it returns the subordinated property.

In order to avoid exceptions, one may check whether the property exists or not by calling TypeDefinition::propertyExist().

// fragment: Property person;

Property   children;

if ( property.typeDefinition().propertyExist("children) {

  children = person.property("children"); // use system shared cursor

  children = cursorCopy(person.property("children")); // create cursor copy

}

// same as: children.open(person,"children");