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


IAttributeRule.Validate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IA > IAttributeRule Interface > IAttributeRule.Validate Method
ArcGIS Developer Help

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,
  System.String* errorMessage
);
[C++]
Parameters
Row [in]

Row is a parameter of type IRow* errorMessage [out]
errorMessage is a parameter of type BSTR*

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