ArcObjects Library Reference (GeoDatabase)  

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,
  IEnumRelationship** relationships
);
[C++]

Parameters

anObjectSet [in]

  anObjectSet is a parameter of type ISet

relationships [out, retval]

  relationships is a parameter of type IEnumRelationship

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