Returns a collection of Table objects for the given the search criteria, but which optionally includes or excludes spatially enabled Table objects (feature classes) stored inside GeodatabaseFolder objects (feature datasets).

Namespace:  ESRI.ArcGISExplorer.Data
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

Syntax

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

Parameters

tableDiscoveryOptions
Type: ESRI.ArcGISExplorer.Data..::.TableDiscoveryOptions
One of the TableDiscoveryOptions values which determines the type of tables to return.
recurseGeodatabaseFolders
Type: System..::.Boolean
trueTruetruetrue (True in Visual Basic) to recurse GeodatabaseFolder objects (feature datasets); otherwise, falseFalsefalsefalse (False in Visual Basic).

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 return all the spatially enabled Tables (feature classes) which are not contained within a GeodatabaseFolder (feature dataset).
CopyC#
//Open the geodatabase
Geodatabase fileGdb = new Geodatabase(@"C:\Data\Scotland.gdb");
//Loop over a collection of all spatial tables but excluding those inside feature datasets
foreach (Table table in fileGdb.GetTables(TableDiscoveryOptions.Spatial,false))
{
  //Print the name of each table or feature class
  System.Diagnostics.Debug.Print(table.Name);
}
CopyVB.NET
'Open the geodatabase
Dim fileGDB As Geodatabase = New Geodatabase("C:\Data\Scotland.gdb")
'Loop over a collection of all spatial tables but excluding those inside feature datasets
For Each gdbTable As Table In fileGDB.GetTables(TableDiscoveryOptions.Spatial, False)
  'Print the name of each feature class
  System.Diagnostics.Debug.Print(gdbTable.Name)
Next

See Also

Relate Topics:
  GetTables Method
  GetTables Method (TableDiscoveryOptions)
Created by Atop CHM to web converter,© 2009 all right reserved.