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


IField.VarType Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IField Interface > IField.VarType Property
ArcGIS Developer Help

IField.VarType Property

The VARTYPE of the field (e.g. VT_I4).

[Visual Basic .NET]
Public ReadOnly Property VarType As Integer
[C#]
public int VarType {get;}
[C++]
HRESULT get_VarType(
  System.Int32* VarType
);
[C++]
Parameters
VarType [out, retval]

VarType is a parameter of type long*

Product Availability

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

Description

Returns an Integer indicating the subtype of a variable.

Remarks

The following is a list of the VARTYPE constants that can be returned from this property.
Field type VarType

esriFieldTypeSmallInteger

esriFieldTypeInteger

esriFieldTypeSingle

esriFieldTypeDouble

esriFieldTypeString

esriFieldTypeDate

esriFieldTypeOID

esriFieldTypeGeometry

esriFieldTypeBlob

esriFieldTypeRaster

esriFieldTypeGUID

esriFieldTypeGlobalID

2

3

4

5

8

7

3

13

13

13

8

8

See Also

IField Interface