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


IFeatureWorkspaceManage.ValidateField Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IFeatureWorkspaceManage.ValidateField Method

Validate a field, performing type conversion if necessary.

[Visual Basic .NET]
Public Function ValidateField ( _
    ByVal inField As IField _
) As IField
[C#]
public IField ValidateField (
    IField inField
);
[C++]
HRESULT ValidateField(
  IField* inField
);
[C++]

Parameters inField [in]
inField is a parameter of type IField*

Product Availability

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

Remarks

The ValidateField method takes a Field definition as input, and based on its field type, scale and precision, returns a field definition that represents more closely how that field is actually stored in the database.

For example, a field whose type is esriFieldTypeSingle and its precision and scale are 0, then it will actually be stored in the database as a double.

See Also

IFeatureWorkspaceManage Interface