ArcObjects Library Reference (GeoDatabase)  

IRelationshipClass.GetObjectsRelatedToObject Method

Gets the objects that are related to the specified object.

[Visual Basic .NET]
Public Function GetObjectsRelatedToObject ( _
    ByVal anObject As IObject _
) As ISet
[C#]
public ISet GetObjectsRelatedToObject (
    IObject anObject
);
[C++]
HRESULT GetObjectsRelatedToObject(
  IObject* anObject,
  ISet** relatedObjects
);
[C++]

Parameters

anObject [in]

  anObject is a parameter of type IObject

relatedObjects [out, retval]

  relatedObjects is a parameter of type ISet

Product Availability

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

Remarks

The GetObjectsRelatedToObject method returns a set of Objects (or subtypes of Object, such as features) that are related to the anObject object.

See Also

IRelationshipClass Interface