Interface IValidate

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members to validate individual features.

[Guid("80E4FF2C-475D-11D2-9932-0000F80372B4")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IValidate

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.

Methods

GetInvalidFields()

Returns all invalid fields.

IFields GetInvalidFields()

Returns

IFields

GetInvalidRules()

The set of all invalid rules.

IEnumRule GetInvalidRules()

Returns

IEnumRule

GetInvalidRulesByField(string)

The set of all invalid rules for the specified field.

IEnumRule GetInvalidRulesByField(string FieldName)

Parameters

FieldName string

Returns

IEnumRule

Validate(out string)

Validates the row.

bool Validate(out string ErrorMessage)

Parameters

ErrorMessage string

Returns

bool

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.