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

Namespace:  ESRI.ArcGISExplorer.Data

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

Syntax

C#
public static Table OpenFileGeodatabaseTable(
	string pathToGeodatabase,
	string name
)
Visual Basic (Declaration)
Public Shared Function OpenFileGeodatabaseTable ( _
	pathToGeodatabase As String, _
	name As String _
) As Table

Parameters

pathToGeodatabase
Type: System..::.String

The path to the geodatabase, including file extension (".gdb").
name
Type: System..::.String

The name of the table or feature class to open.

Return Value

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

Remarks

This is a convenience method which is useful for opening a small number of tables, consider using the Geodatabase.OpenTable method instead when opening many tables.

Examples

The code below opens a file geodatabase feature class using the OpenFileGeodatabaseTable method then prints out the AliasName, Name, and ShortName properties.
CopyC#
//Open a file geodatabase feature class called mountains
Table mtnsFGDB = Table.OpenFileGeodatabaseTable(@"C:\Data\Scotland.gdb", "mountains");

System.Diagnostics.Debug.Print(mtnsFGDB.AliasName); //Prints "mtns"
System.Diagnostics.Debug.Print(mtnsFGDB.Name);      //Prints "mountains"
System.Diagnostics.Debug.Print(mtnsFGDB.ShortName); //Prints "mountains"
CopyVB.NET
'Open a file geodatabase feature class called mountains
Dim mtnsFGDB As Table = Table.OpenFileGeodatabaseTable("C:\Data\Scotland.gdb", "mountains")

System.Diagnostics.Debug.Print(mtnsFGDB.AliasName) 'prints "mtns"
System.Diagnostics.Debug.Print(mtnsFGDB.Name)      'prints "mountains"
System.Diagnostics.Debug.Print(mtnsFGDB.ShortName) 'prints "mountains"

See Also