ArcObjects Library Reference (GeoDatabase)  

IObjectClassValidation.ValidateRow Method

Validates the row.

[Visual Basic .NET]
Public Function ValidateRow ( _
    ByVal Row As IRow _
) As String
[C#]
public string ValidateRow (
    IRow Row
);
[C++]
HRESULT ValidateRow(
  IRow* Row,
  BSTR* errorMessage
);
[C++]

Parameters

Row [in]

  Row is a parameter of type IRow

errorMessage [out, retval]   errorMessage is a parameter of type BSTR

Product Availability

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

Remarks

The ValidateRow method is called by an Objects IValidate::Validate and by the Validate methods on the IValidation interface of the associated object class. ValidateRow should be used to validate database or spatial relationships in addition to field values. If the field or row is invalid, an appropriate error string should be returned. Otherwise, return a zero length string.

See Also

IObjectClassValidation Interface | IClassExtension Interface | IClassSchemaEdit Interface | IValidation Interface