This document is archived and information here might be outdated.  Recommended version.


IRelationshipClass.GetRelationshipsForObjectSet Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.GetRelationshipsForObjectSet Method
ArcGIS Developer Help

IRelationshipClass.GetRelationshipsForObjectSet Method

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
);
[C++]
Parameters
anObjectSet [in]

anObjectSet is a parameter of type ISet*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IRelationshipClass Interface