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


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

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

anObject is a parameter of type IObject*

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