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


IValidation Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IValidation Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IValidation Interface

Provides access to members that manage rules and validate them. Note: the IValidation interface has been superseded byIValidation2. 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

Name 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 ObjectClassValidator object.
SchematicDiagramClass (esriSchematic) Schematic diagram class object.
SchematicElementClass (esriSchematic) Schematic element class object.
TemporalRecordSet (esriTrackingAnalyst) Defines the COM coclass for the TemporalRecordSet COM object.

.NET Related Topics

Geodatabase | Validating features