ArcObjects Library Reference  (GeoDatabase)    

IValidation Interface

Provides access to members that manage rules and validate them. Note: the IValidation interface has been superseded by IValidation2. Please consider using the more recent version.

Product Availability

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

Description

IValidation interface is a member of the ObjectClass coclass. It is used to maintain rules, and also to validate the workspace or object class based on the rules associated with it. Rules can be added, deleted, and validated through this interface. Also rule objects associated with the object class can be obtained from this interface.

When To Use

IValidation is the interface on a ObjectClass object used to add/delete rules, as well as validate those rules against the current object class. For example, use the IValidation interface to add a connectivity/attribute rule to this particular object class. You can then create a query filter based on this object class and use the validate function to see if there are any features that are considered invalid based on these rules.

Members

Description
Method AddRule Adds the rule to the set of associated rules.
Method DeleteRule Deletes the rule from the set of associated rules.
Read-only property Rules The rules associated with the class.
Read-only property RulesByField The rules associated with the attribute.
Read-only property RulesBySubtypeCode The rules associated with the subtype.
Method Validate Validates the selection.
Method ValidateSelection Validates the selection.
Method ValidateSet Validates the set.

CoClasses that implement IValidation

CoClasses and Classes Description
FeatureClass ESRI Feature Class object.
ObjectClass ESRI Object Class object.
ObjectClassValidator ESRI Object Class Validator object.
SchematicDiagramClass (esriSchematic) Schematic diagram class object.
SchematicElementClass (esriSchematic) Schematic element class object.