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

IRelationshipClass.RelationshipRules Property (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.RelationshipRules Property
ArcGIS Developer Help

IRelationshipClass.RelationshipRules Property

The relationship rules that apply to this relationship class.

[Visual Basic .NET]
Public ReadOnly Property RelationshipRules As IEnumRule
public IEnumRule RelationshipRules {get;}
HRESULT get_RelationshipRules(
  IEnumRule** Rules
Rules [out, retval]

Rules is a parameter of type IEnumRule**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


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.

See Also

IRelationshipClass Interface