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


IRule Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRule Interface

Provides access to members that return information about rules.

Product Availability

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

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

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.

CoClasses that implement IRule

CoClasses and 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.
TopologyRule Esri Topology Rule object.

.NET Related Topics

Adding and working with connectivity rules in a geometric network | Checking for topology error features in a geodatabase topology | Geodatabase