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


IRelationshipClass.GetObjectsRelatedToObject 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.GetObjectsRelatedToObject Method
ArcGIS Developer Help

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

anObject is a parameter of type IObject*

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