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


IRelationshipClass.GetRelationshipsForObject Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRelationshipClass.GetRelationshipsForObject Method

Get all relationships that apply to a specified object.

[Visual Basic .NET]
Public Function GetRelationshipsForObject ( _
    ByVal anObject As IObject _
) As IEnumRelationship
[C#]
public IEnumRelationship GetRelationshipsForObject (
    IObject anObject
);
[C++]
HRESULT GetRelationshipsForObject(
  IObject* anObject,
  IEnumRelationship** relationships
);
[C++]

Parameters anObject [in]
anObject is a parameter of type IObject relationships [out, retval]
relationships is a parameter of type IEnumRelationship

Product Availability

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

Remarks

The GetRelationshipsForObject method returns an IEnumRelationship enumerator containing the relationships that the anObject parameter participates in.

See Also

IRelationshipClass Interface