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


IARFeature.FieldType Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARFeature Interface > IARFeature.FieldType Property
ArcGIS Developer Help

IARFeature.FieldType Property

The type of field.

[Visual Basic .NET]
Public Function get_FieldType ( _
    ByVal index As Integer _
) As esriARFieldType
[C#]
public esriARFieldType get_FieldType (
    int index
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Returns the FieldType of the read only indexed field at the specified index in the ARFeature's field collection. There is always at least one field within the field collection. 

If the FieldType returns the esriARFieldTypeGeometry constant, you will not be able to access the Value of this field as it stores the geometry (or shape) of the ARFeature object.

Errors Returned

2019 800A07E3: The feature is invalid and has not been initialized

2020 800A07E4: The specified field parameter is invalid

Remarks

Use a zero-based index to access FieldType's. For example, to get the FieldType of the first field in the collection, pass an index of 0, and to get the FieldType of the last field in the collection, pass an index of (FieldCount - 1).

[C#]

In C# use the get_FieldType method, as indexed property accessors are not supported.

See Also

IARFeature Interface