Returns a Table object which represents a table or feature class stored in a geodatabase.

Namespace:  ESRI.ArcGISExplorer.Data

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

Syntax

C#
public Table OpenTable(
	string name
)
Visual Basic (Declaration)
Public Function OpenTable ( _
	name As String _
) As Table

Parameters

name
Type: System..::.String

The name of the table or feature class to open. For ArcSDE geodatabases fully qualify the table name (e.g. "owner.tablename" or "database.owner.tablename").

Return Value

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

Examples

The code below opens a table and a feature class from both a file and ArcSDE geodatabase.
CopyC#
//Example 1 - open a feature class and table stored in a file geodatabase
Geodatabase fileGdb = new Geodatabase(@"C:\Data\Scotland.gdb");
//Open a feature class
Table mountainsTable = fileGdb.OpenTable("mountains");
//Open a table
Table ratingsTable = fileGdb.OpenTable("mtn_ratings");

//Example 2 - open a feature class and table stored in an Oracle ArcSDE geodatabase
Geodatabase sdeGdb = new Geodatabase(new ArcSDEConnectionProperties("serverName", "5151", "userName", "pwd"));
//Open a feature class (version = SDE.DEFAULT so not specified, owner = admin)
Table mountainsSDETable = sdeGdb.OpenTable("admin.mountains");
//Open a table (version = SDE.DEFAULT so not specified, owner = admin)
Table ratingsSDETable = sdeGdb.OpenTable("admin.mtn_ratings");
CopyVB.NET
'Example 1 - open a feature class and table stored in a file geodatabase
Dim fileGdb As Geodatabase = New Geodatabase("C:\Data\Scotland.gdb")
'Open a feature class
Dim mountainsTable As Table = fileGdb.OpenTable("mountains")
'Open a table
Dim ratingsTable As Table = fileGdb.OpenTable("mtn_ratings")

'Example 2 - open a feature class and table stored in an Oracle ArcSDE geodatabase
Dim sdeGdb As Geodatabase = New Geodatabase(New ArcSDEConnectionProperties("serverName", "5151", "userName", "pwd"))
'Open a feature class (version = SDE.DEFAULT so not specified, owner = admin)
Dim mountainsSDETable As Table = sdeGdb.OpenTable("admin.mountains")
'Open a table (version = SDE.DEFAULT so not specified, owner = admin)
Dim ratingsSDETable As Table = sdeGdb.OpenTable("admin.mtn_ratings")

See Also