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


IRelationshipClass.RelationshipRules Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRelationshipClass.RelationshipRules Property

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

Product Availability

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

Remarks

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