Access to relationship collections is supported at both the COM level and the Automation level.
To | Use |
Add a relationship to a relationship collection | Add method of the IrelationshipCol interface. |
Remove a relationship from a relationship collection | Remove method of the IrelationshipCol interface. |
Enumerate the relationships within a relationship collection | Automation: the syntax relationshipCollection(index), as for retrieving an item from any Automation collection. COM: the get_Count and get_Item methods of the IRelationshipCol interface, or use the _NewEnum method of the IrelationshipCol interface to obtain a standard enumerator interface for the collection. |