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
[C#]
public string ValidateField (
    IRow Row,
    string FieldName
);
[Java]
public String validateField (
    IRow Row,
    String FieldName
)
throws
    IOException,
    AutomationException
[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

Example

IObjectClassValidation Example