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


IObjectClassValidation.ValidateField Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IObjectClassValidation.ValidateField Method

Validates the row's specified attribute.

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

Parameters Row [in]
Row is a parameter of type IRow FieldName [in] FieldName is a parameter of type BSTR errorMessage [out, retval] errorMessage is a parameter of type BSTR

Product Availability

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

Remarks

The ValidateField method will be called when IValidate::GetInvalidFields is called on an object of the associated object class.

See Also

IObjectClassValidation Interface | IClassExtension Interface | IClassSchemaEdit Interface | IValidation Interface