This method returns the next member of the collection property referenced in the collection parameter. The method also updates the position pointer within the collection parameter to point to the next member of the collection property. The returned member is referenced in the property parameter to this method. If there is no next member, the type for this property is set to AXPT_Invalid. This can be checked using the GetPropertyType method, passing the property parameter to it.
The GetMappedProperty method should be called prior to this method. When the property returned in the property parameter is a collection, NextCollectionProperty is called to retrieve the members of that collection. When these members are object instances, the GetPropertyFromObject method is called subsequent to NextCollectionProperty to retrieve the property values found within the object instance.
BOOL NextCollectionProperty (VARIANT* collection, VARIANT* property)