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


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

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 _
)
[C#]
public void Validate (
    IFields inputField,
    ref IEnumFieldError error,
    ref IFields fixedFields
);
[C++]
HRESULT Validate(
  IFields* inputField,
  IEnumFieldError** error,
  IFields** fixedFields
);
[C++]

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

Description

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

.NET Related Topics

Converting simple data | Creating feature classes | Creating fields | Creating tables | Geodatabase