This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARFeature Interface > IARFeature.FieldName Property (ArcObjects .NET 10.4 SDK) |
The name of the field.
[Visual Basic .NET] Public Function get_FieldName ( _ ByVal index As Integer _ ) As String
[C#] public string get_FieldName ( int index );
Returns the FieldName 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.
The FieldName is the underlying database field name and is used in attribute queries. The FieldAliasName is typically a more readable version of a FieldName and is often set by the publisher of a Published Map File. For example, the FieldName "POP1990" could have the FieldAliasName "Population 1990".
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 FieldName's. For example, to get the FieldName of the first field in the collection, pass an index of 0, and to get the FieldName of the last field in the collection, pass an index of (FieldCount - 1).
In C# use the get_FieldName method, as indexed property accessors are not supported.