This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IO > IObjectClass Interface > IObjectClass.RelationshipClasses Property (ArcObjects .NET 10.5 SDK) |
The relationship classes in which this object class participates in for the specified role.
[Visual Basic .NET] Public Function get_RelationshipClasses ( _ ByVal Role As esriRelRole _ ) As IEnumRelationshipClass
[C#] public IEnumRelationshipClass get_RelationshipClasses ( esriRelRole Role );
[C++]
HRESULT get_RelationshipClasses(
esriRelRole Role,
IEnumRelationshipClass** RelationshipClasses
);
[C++]
Parameters Role [in]
Role is a parameter of type esriRelRole RelationshipClasses [out, retval]
RelationshipClasses is a parameter of type IEnumRelationshipClass
Returns an enumeration of the relationship classes in which the object class participates.
Object classes in a geodatabase may participate in any number of relationships classes. The RelationshipClasses property allows you to get a list of those relationship classes that the object class participates in by what role it plays (origin, destination, or either) defined by the esriRelRole enumeration used when you call this property. This property returns a IEnumRelationshipClass interface which you can use to loop through those relationship classes that are returned.
IObjectClass Interface | IEnumRelationshipClass Interface | esriRelRole Constants