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


IField.VarType Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

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(
  long* 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

.NET Related Topics

Working with fields