This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARFeature Interface > IARFeature.FieldType Property (ArcObjects .NET 10.5 SDK) |
The type of field.
[Visual Basic .NET] Public Function get_FieldType ( _ ByVal index As Integer _ ) As esriARFieldType
[C#] public esriARFieldType get_FieldType ( int index );
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.
2019 800A07E3: The feature is invalid and has not been initialized
2020 800A07E4: The specified field parameter is invalid
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).
In C# use the get_FieldType method, as indexed property accessors are not supported.