This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeatureWorkspaceManage Interface > IFeatureWorkspaceManage.ValidateField Method (ArcObjects .NET 10.4 SDK) |
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,
IField** outField
);
[C++]
Parameters inField [in]
inField is a parameter of type IField outField [out, retval]
outField is a parameter of type IField
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.