ArcObjects Library Reference  (GeoDatabase)    

IValidate.Validate Method

Validates the row.

[Visual Basic 6.0]
Function Validate(
    errorMessage As String _
) As Boolean
[Visual Basic .NET]
Public Function Validate ( _
    ByRef errorMessage As String _
) As Boolean
[C#]
public bool Validate (
    ref string errorMessage
);
[Java]
public Boolean validate (
    String errorMessage
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Validate(
  BSTR* errorMessage,
  VARIANT_BOOL* isValid
);
[C++]

Parameters

errorMessage [out]

  errorMessage is a parameter of type BSTR

isValid [out, retval]

  isValid is a parameter of type VARIANT_BOOL

Product Availability

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

Description

Validate function validates the given row and returns a boolean value of TRUE if the row is valid and FALSE if its not.

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

 


Feedback Send feedback on this page