ArcGIS Enterprise SDK
IRule Interface
ArcGIS Enterprise SDK Developer Help > ArcGIS Enterprise SDK API Reference > ArcGIS Enterprise SDK .NET Namespaces > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRule Interface
ArcGIS Developer Help

IRule Interface

Provides access to members that return information about rules.

Description

The IRule interface is used to configure and access rules that object classes must adhere to be successfully validated. There are four types of rules that can be created: attribute rules, connectivity rules (edge and junction), relationship rules, and topology rules.

When To Use

The IRule interface is used to get and set the common properties for all rule types. For example, you can set or get the category, help string, and ID for the rule and you can also get an esriRuleType value, representing the rule's type. You would use IRule when you want to create rules for a particular object class so that it can be validated.

Members

Name Description
Read/write property Category The name associated with the validation rule.
Read/write property Helpstring The helpstring associated with the validation rule.
Read/write property ID The ID of the validation rule.
Read-only property Type The type associated with the validation rule.

Classes that implement IRule

Classes Description
AttributeRule Esri attribute rule object.
EdgeConnectivityRule Esri Edge-Edge NetworkConnectivity rule object.
JunctionConnectivityRule Esri Junction-Edge NetworkConnectivity rule object.
RelationshipRule Esri relationship rule object.