This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.RelationshipRules Property (ArcObjects .NET 10.5 SDK) |
The relationship rules that apply to this relationship class.
[Visual Basic .NET] Public ReadOnly Property RelationshipRules As IEnumRule
[C#] public IEnumRule RelationshipRules {get;}
[C++]
HRESULT get_RelationshipRules(
IEnumRule** Rules
);
[C++]
Parameters Rules [out, retval]
Rules is a parameter of type IEnumRule
The RelationshipRules property retrieves the relationship rules of the relationship class as an IEnumRule enumerator. These rules are used to control which object subtypes from the origin class can be related to which object subtypes in the destination class. They can also be used to specify a valid cardinality range for all permissable subtype pairs. For example, in a feature class containing utility poles divided into wooden and steel subtypes, relationship rules could be used to specify that wooden poles may have one to three transformers attached, but steel poles may have one to five transformers attached.