Interface IRelationship

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that return information about the relationship.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("22B00696-8895-11D2-8A0D-006097AFF44E")]
public interface IRelationship

Remarks

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.

Properties

DestinationObject

The destination object.

IObject DestinationObject { get; }

Property Value

IObject

OriginObject

The origin object.

IObject OriginObject { get; }

Property Value

IObject

RelationshipClass

The relationship class to which this relationship belongs.

IRelationshipClass RelationshipClass { get; }

Property Value

IRelationshipClass

Remarks

<P>You can create a relationship class with either <STRONG>IRelationshipClassContainer </STRONG>or <STRONG>IFeatureWorkspace</STRONG>. <STRONG>RelationshipClass </STRONG>objects implement <STRONG>IDataset </STRONG>(useful for getting the name or the workspace), but note that they do not implement <STRONG>IClass </STRONG>(unless they are attributed). This is because a non-attributed relationship class does not have any fields of its own.</P>