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


IARFeature.FieldAliasName Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARFeature.FieldAliasName Property

The alias name of the field.

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Returns the FieldAliasName 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 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 FieldAliasName's. For example, to get the FieldAliasName 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_FieldAliasName method, as indexed property accessors are not supported.

See Also

IARFeature Interface