ArcGIS Explorer Component Help |
IndexCollection..::.GetNames Method |
IndexCollection Class Example See Also |
Gets the names of all the indexes defined for the Table.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public ReadOnlyCollection<string> GetNames() |
Visual Basic (Declaration) |
---|
Public Function GetNames As ReadOnlyCollection(Of String) |
Return Value
A ReadOnlyCollection object consisting of all the index names.Examples
The code below demonstrates how to use the GetNames method to print out the names of all the indexes
in the IndexCollection.
CopyC#
//Open feature class Table regionsTable = Table.OpenArcSDETable(@"C:\Data\Enterprise.sde", "SCOTADMIN.Regions"); //Use the GetNames method to print out the names of all the indexes foreach (string indexName in regionsTable.Indexes.GetNames()) { System.Diagnostics.Debug.Print(indexName); }
CopyVB.NET
'Open feature class Dim regionsTable As Table = Table.OpenArcSDETable("C:\Data\Enterprise.sde", "SCOTADMIN.Regions") 'Use the GetNames method to print out the names of all the indexes For Each indexName As String In regionsTable.Indexes.GetNames() System.Diagnostics.Debug.Print(indexName) Next