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


IARFeature.FieldName 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.FieldName Property
ArcGIS Developer Help

IARFeature.FieldName Property

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
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

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". 

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 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).

[C#]

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

See Also

IARFeature Interface