ArcObjects Library Reference (GeoDatabase)  

IAttributeRule.Validate Method

Validates the rule.

[Visual Basic .NET]
Public Function Validate ( _
    ByVal Row As IRow, _
    ByRef errorMessage As String _
) As Boolean
[C#]
public bool Validate (
    IRow Row,
    ref string errorMessage
);
[C++]
HRESULT Validate(
  IRow* Row,
  BSTR* errorMessage,
  VARIANT_BOOL* isValid
);
[C++]

Parameters

Row [in]

  Row is a parameter of type IRow

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 a row against this attribute rule, placing an error message if any is generated in the error message string parameter. Returns a boolean TRUE if row is valid and FALSE if not.

See Also

IAttributeRule Interface