Returns a Table object which represents a table or feature class stored in an ArcSDE 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 OpenArcSDETable(
	string pathToSdeFile,
	string name
)
Visual Basic (Declaration)
Public Shared Function OpenArcSDETable ( _
	pathToSdeFile As String, _
	name As String _
) As Table

Parameters

pathToSdeFile
Type: System..::.String

The path to the spatial database connection file (".sde").
name
Type: System..::.String

The fully qualified name of the table or feature class (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).

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 an ArcSDE feature class using the OpenArcSDETable method, then prints out the AliasName, Name, and ShortName properties.
CopyC#
//Open an Oracle ArcSDE geodatabase feature class called mountains,
//owned by a user called scotadmin which is stored in the SDE.DEFAULT version
ArcSDEConnectionProperties conn = new ArcSDEConnectionProperties("serverName", "5151", "scotuser", "scotuser");
Table mtnsSDE = Table.OpenArcSDETable(conn, "scotadmin.mountains");

System.Diagnostics.Debug.Print(mtnsSDE.AliasName); //Prints "SCOTADMIN.mtns"
System.Diagnostics.Debug.Print(mtnsSDE.Name);      //Prints "SCOTADMIN.mountains"
System.Diagnostics.Debug.Print(mtnsSDE.ShortName); //Prints "mountains"
CopyVB.NET
'Open an Oracle ArcSDE geodatabase feature class called mountains,
'owned by a user scotadmin and stored in the SDE.DEFAULT version
Dim mtnsSDE As Table = Table.OpenArcSDETable("C:\Data\Enterprise.sde", "scotadmin.mountains")

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

See Also