Returns a collection of Table objects for the given the supplied search criteria.

Namespace:  ESRI.ArcGISExplorer.Data

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

Syntax

C#
public ReadOnlyCollection<Table> GetTables(
	TableDiscoveryOptions tableDiscoveryOptions
)
Visual Basic (Declaration)
Public Function GetTables ( _
	tableDiscoveryOptions As TableDiscoveryOptions _
) As ReadOnlyCollection(Of Table)

Parameters

tableDiscoveryOptions
Type: ESRI.ArcGISExplorer.Data..::.TableDiscoveryOptions

One of the TableDiscoveryOptions values which determines the type of tables to return.

Return Value

A ReadOnlyCollection object consisting of Table objects each of which represents either a geodatabase table (non-spatial) or a feature class (spatial, vector format).

Examples

The code below shows how to iterate over only the feature classes in a geodatabase.
CopyC#
//Open the geodatabase
Geodatabase fileGdb = new Geodatabase(@"C:\Data\Scotland.gdb");
//Loop over an enumeration of all feature classes
foreach (Table table in fileGdb.GetTables(TableDiscoveryOptions.Spatial))
{
  //Print the name of each feature class in the geodatabase
  System.Diagnostics.Debug.Print(table.Name);
}
CopyVB.NET
'Open the geodatabase
Dim fileGdb As Geodatabase = New Geodatabase("C:\Data\Scotland.gdb")

'Loop over an enumeration of all feature classes
For Each gdbTable As Table In fileGdb.GetTables(TableDiscoveryOptions.Spatial)
  'Print the name of each feature class in the geodatabase
  System.Diagnostics.Debug.Print(gdbTable.Name)
Next

See Also