This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.GetRelationshipsForObject Method (ArcObjects .NET 10.4 SDK) |
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
The GetRelationshipsForObject method returns an IEnumRelationship enumerator containing the relationships that the anObject parameter participates in.