This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.GetRelationshipsForObjectSet Method (ArcObjects .NET 10.4 SDK) |
Get all relationships that apply to the specified origin or destination object set.
[Visual Basic .NET] Public Function GetRelationshipsForObjectSet ( _ ByVal anObjectSet As ISet _ ) As IEnumRelationship
[C#] public IEnumRelationship GetRelationshipsForObjectSet ( ISet anObjectSet );
[C++]
HRESULT GetRelationshipsForObjectSet(
ISet* anObjectSet,
IEnumRelationship** relationships
);
[C++]
Parameters anObjectSet [in]
anObjectSet is a parameter of type ISet relationships [out, retval]
relationships is a parameter of type IEnumRelationship
The GetRelationshipsForObjectSet method returns an IEnumRelationship enumerator containing the relationships that the objects in anObjectSet parameter participate in.
If the input set is constructed with a cursor, ensure that a non-recycling cursor is used.