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


IValidate Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IValidate Interface
ArcGIS Developer Help

IValidate Interface

Provides access to members to validate individual features.

Product Availability

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

Description

The IValidate interface can be used to validate individual features and objects from geodatabase feature classes and tables.

Members

Name Description
Method GetInvalidFields Returns all invalid fields.
Method GetInvalidRules The set of all invalid rules.
Method GetInvalidRulesByField The set of all invalid rules for the specified field.
Method Validate Validates the row.

Classes that implement IValidate

Classes Description
AnnotationFeature (esriCarto) An Esri annotation feature.
AttributedRelationship Esri Attributed Relationship object.
ComplexEdgeFeature Esri Complex edge geometric network feature object.
ComplexJunctionFeature Esri Complex junction geometric network feature.
CoverageAnnotationFeature Esri Coverage Annotation Feature.
DimensionFeature (esriCarto) Esri Dimension Feature class.
Feature Esri Feature.
GeocodedFeature (esriLocation) A feature created by a locator.
GeocodingIndexObject (esriLocation) A geocoding index for a reference data row.
NALocationFeature (esriNetworkAnalyst) A network location which can be used like a feature or a row.
NALocationObject (esriNetworkAnalyst) A network location which can be used like a row.
NALocationRangesFeature (esriNetworkAnalyst) A container of NALocationRanges which can be used like a feature or a row.
NALocationRangesObject (esriNetworkAnalyst) A container of NALocationRanges which can be used like a row.
NATraversalResultElement (esriNetworkAnalyst) An individual element in a traversal result.
Object Esri Object object.
RasterCatalogItem Raster Catalog Feature Class.
Row Esri Row object.
SchematicDiagram (esriSchematic) A schematic diagram object.
SchematicInMemoryFeatureLink (esriSchematic) Schematic in memory feature link object.
SchematicInMemoryFeatureNode (esriSchematic) Schematic in memory feature node object.
SchematicInMemoryFeatureNodeOnLink (esriSchematic) Schematic in memory feature node on link object.
SchematicInMemoryFeatureSubLink (esriSchematic) Schematic in memory feature sublink object.
SchematicLink (esriSchematic) A schematic link object.
SchematicNode (esriSchematic) A schematic node object.
SchematicNodeOnLink (esriSchematic) A schematic node-on-link object.
SchematicSubLink (esriSchematic) A schematic sublink object.
SimpleEdgeFeature Esri Geometric network simple edge feature object.
SimpleJunctionFeature Esri Geometric network simple junction feature object.
TopologyErrorFeature Esri Topology Error Feature object.

Remarks

The IValidate interface is used to test a row against the geodatabase rules defined for its object class. While the IValidation interface will validate a whole set of rows at once, IValidate operates on just one row; this can be useful if you want to validate the row immediately. IValidate also offers more detailed information on the failures; the Validate method returns an error message, and the other methods help identify what is wrong.

IValidate is not implemented by attributed relationships.

.NET Samples

Add-in custom editor extension