Provides access to members that return information about rules.
Description
The IRuleinterface 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 | |
---|---|---|
Category | The name associated with the validation rule. | |
Helpstring | The helpstring associated with the validation rule. | |
ID | The ID of the validation rule. | |
Type | The type associated with the validation rule. |
IRule.Category Property
The name associated with the validation rule.
Public Property Category As Integer
public int Category {get; set;}
Description
Categorysets the name associated with the rule. Not currently used by any ArcGIS application.
IRule.Helpstring Property
The helpstring associated with the validation rule.
Public Property Helpstring As String
public string Helpstring {get; set;}
Description
Helpstringproperty sets the helpstring for the given rule. Not currently used by any ArcGIS application.
IRule.ID Property
The ID of the validation rule.
Public Property ID As Integer
public int ID {get; set;}
Description
ID property returns the id for the given rule.
Remarks
This property will always return -1 for rules in geodatabases created in versions of ArcGIS later than 9.3.1.
IRule.Type Property
The type associated with the validation rule.
Public ReadOnly Property Type As esriRuleType
public esriRuleType Type {get;}
Description
Typeproperty returns the esriRuleType enumeration type of the given 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. |
TopologyRule | Esri Topology Rule object. |