ArcGIS Explorer Component Help |
Table..::.OpenArcSDETable Method (ArcSDEConnectionProperties, String) |
Table Class Example See Also |
Returns a Table object which represents a table or feature class stored in an ArcSDE geodatabase.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public static Table OpenArcSDETable( ArcSDEConnectionProperties connectionProperties, string name ) |
Visual Basic (Declaration) |
---|
Public Shared Function OpenArcSDETable ( _ connectionProperties As ArcSDEConnectionProperties, _ name As String _ ) As Table |
Parameters
- connectionProperties
- Type: ESRI.ArcGISExplorer.Data..::.ArcSDEConnectionProperties
An ArcSDEConnectionProperties object which contains the information required to make a connection to a geodatabase.
- 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 conn As ArcSDEConnectionProperties = New ArcSDEConnectionProperties("serverName", "5151", "scotuser", "scotuser") Dim mtnsSDE As Table = 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"