ArcObjects Library Reference  (GeoDatabase)    

IObjectClassValidation.ValidateField Method

Validates the row's specified attribute.

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


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.


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


IObjectClassValidation Example