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


IValidate.Validate Method (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 > IValidate.Validate Method
ArcGIS Developer Help

IValidate.Validate Method

Validates the row.

[Visual Basic .NET]
Public Function Validate ( _
    ByRef errorMessage As String _
) As Boolean
[C#]
public bool Validate (
    ref string errorMessage
);
[C++]
HRESULT Validate(
  System.String* errorMessage
);
[C++]
Parameters
errorMessage [out]

errorMessage is a parameter of type BSTR*

Product Availability

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

Description

The Validate method indicates whether the row is violating any of its class's rules. A return value of true indicates the row is valid, while a return value of false indicates the row is violating one or more rules.

Remarks

Validate on a row occurs in five steps:

  1. Validate the subtype

  2. Validate the attribute rules

  3. Validate the network connectivity rules (if network feature)

  4. Validate the relationship rules

  5. Perform custom validation (using optional class extension)

The validate process stops once a row is found invalid. For example, if a network feature violates an attribute rule, the validation process stops and the feature's network connectivity rules are not evaluated until the attribute rule violation is corrected.

See Also

IValidate Interface

.NET Samples

Add-in custom editor extension