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

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

IRelationship Interface

Provides access to members that return information about the relationship.

Product Availability

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


Name Description
Read-only property DestinationObject The destination object.
Read-only property OriginObject The origin object.
Read-only property RelationshipClass The relationship class to which this relationship belongs.

Classes that implement IRelationship

Classes Description
AttributedRelationship Esri Attributed Relationship object.
Relationship Esri Relationship object.
SimpleRelationship Esri Simple Relationship object.


The IRelationship interface provides read-only information about a relationship. It is most useful with attributed relationships, since it can form a bridge between the attribute information, which is in row form, and the related objects.

When dealing with relationships you will normally use the IRelationshipClass interface, rather than IRelationship.

The SimpleRelationship object represents a pair of related geodatabase objects or features. There are no attribute values associated with the relationship.

You cannot cocreate a simple relationship. Instead use IRelationshipClass::CreateRelationship.

The AttributedRelationship object is a kind of row that represents a pair of related objects or features with extra information about the pairing. The extra information is stored in the row.

You cannot co-create an attributed relationship. Instead use IRelationshipClass::CreateRelationship.

See Also

IRelationshipClass Interface | IObject Interface