Returns a collection containing alias names of the columns in the Table.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public ReadOnlyCollection<string> GetColumnAliasNames()
Visual Basic (Declaration)
Public Function GetColumnAliasNames As ReadOnlyCollection(Of String)

Return Value

A ReadOnlyCollection object consisting of the alias name of each column.

Examples

The code below loops over a list of column names and a list of alias column names, printing out the items in each one.
CopyC#
//Open a file geodatabase feature class called mountains
Table mountainsTable = Table.OpenFileGeodatabaseTable(@"C:\Data\Scotland.gdb", "mountains");

//loop over a list of all column names in the table and print them out
foreach (string colName in mountainsTable.Columns.GetColumnNames())
{
  System.Diagnostics.Debug.Print(colName);
}

//loop over a list of all column alias names in the table and print them out
foreach (string colAliasName in mountainsTable.Columns.GetColumnAliasNames())
{
  System.Diagnostics.Debug.Print(colAliasName);
}
CopyVB.NET
'Open a file geodatabase feature class called mountains
Dim mountainsTable As Table = Table.OpenFileGeodatabaseTable("C:\Data\Scotland.gdb", "mountains")

'loop over a list of all column names in the table and print them out
For Each colName As String In mountainsTable.Columns.GetColumnNames()
  System.Diagnostics.Debug.Print(colName)
Next

'loop over a list of all column alias names in the table and print them out
For Each colAliasName As String In mountainsTable.Columns.GetColumnAliasNames()
  System.Diagnostics.Debug.Print(colAliasName)
Next

See Also