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

IFieldChecker.Validate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFieldChecker Interface > IFieldChecker.Validate Method
ArcGIS Developer Help

IFieldChecker.Validate Method

Checks the validity of a list of field names.

[Visual Basic .NET]
Public Sub Validate ( _
    ByVal inputField As IFields, _
    ByRef error As IEnumFieldError, _
    ByRef fixedFields As IFields _
public void Validate (
    IFields inputField,
    ref IEnumFieldError error,
    ref IFields fixedFields
HRESULT Validate(
  IFields* inputField,
  IEnumFieldError** error,
  IFields** fixedFields
inputField [in]

inputField 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.


Validate sets the IFields parameter to a set of fields valid for the target data format, and sets the IEnumFieldError to contain field error codes and associated field names. The error codes are stored as a esriFieldNameErrorType. If the IEnumFieldError is returned as Nothing then no errors were found. 

See Also

IFieldChecker Interface