This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.GetObjectsRelatedToObject Method (ArcObjects .NET 10.4 SDK) |
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
The GetObjectsRelatedToObject method returns a set of Objects (or subtypes of Object, such as features) that are related to the anObject object.