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
GetInvalidRules()
The set of all invalid rules.
IEnumRule GetInvalidRules()
Returns
GetInvalidRulesByField(string)
The set of all invalid rules for the specified field.
IEnumRule GetInvalidRulesByField(string FieldName)
Parameters
FieldNamestring
Returns
Validate(out string)
Validates the row.
bool Validate(out string ErrorMessage)
Parameters
ErrorMessagestring
Returns
Remarks
Validate on a row occurs in five steps:
- Validate the subtype
- Validate the attribute rules
- Validate the network connectivity rules (if network feature)
- Validate the relationship rules
- 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.