ArcObjects Library Reference (GeoDatabase)  

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

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.

CoClasses that implement IValidate

CoClasses and 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.
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 (Code Files: ValidateFeaturesExtension) |

.NET Related Topics

Building editor extensions using add-ins | Validating features |