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


IFieldChecker.ValidateField Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IFieldChecker.ValidateField Method

Checks the validity of a field.

[Visual Basic .NET]
Public Sub ValidateField ( _
    ByVal FieldIndex As Integer, _
    ByVal inputFields As IFields, _
    ByRef error As IEnumFieldError, _
    ByRef fixedFields As IFields _
)
[C#]
public void ValidateField (
    int FieldIndex,
    IFields inputFields,
    ref IEnumFieldError error,
    ref IFields fixedFields
);
[C++]
HRESULT ValidateField(
  long FieldIndex,
  IFields* inputFields,
  IEnumFieldError** error,
  IFields** fixedFields
);
[C++]

Parameters FieldIndex [in] FieldIndex is a parameter of type long inputFields [in]
inputFields is a parameter of type IFields error [out]
error is a parameter of type IEnumFieldError fixedFields [out]
fixedFields is a parameter of type IFields

Product Availability

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

Description

ValidateFields validates a field selected using its FieldIndex value from the entered IFields object.  If the field is not valid IEnumFieldError and a IFields object is returned. The IEnumFieldError object will contain the field error code and the associated field name. The error codes are stored as a esriFieldNameErrorType. If the IEnumFieldError is returned as Nothing then no errors were found. The returned IFields object will include compliant field names.

See Also

IFieldChecker Interface