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
public IEnumRelationship GetRelationshipsForObject (
    IObject anObject
HRESULT GetRelationshipsForObject(
  IObject* anObject,
  IEnumRelationship** relationships


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.


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

See Also

IRelationshipClass Interface