Initializes a new instance of the Geodatabase class and opens an ArcSDE geodatabase using the supplied connection information.

Namespace:  ESRI.ArcGISExplorer.Data

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

Syntax

C#
public Geodatabase(
	ArcSDEConnectionProperties connectionSettings
)
Visual Basic (Declaration)
Public Sub New ( _
	connectionSettings As ArcSDEConnectionProperties _
)

Parameters

connectionSettings
Type: ESRI.ArcGISExplorer.Data..::.ArcSDEConnectionProperties

An ArcSDEConnectionProperties object which contains the information required to make a connection to a geodatabase.

Return Value

A Geodatabase object representing the actual ESRI geodatabase data storage container.

Examples

The code below creates a new Geodatabase object and opens an ArcSDE geodatabase then prints out information relating to the connection.
CopyC#
//Connect to an ArcSDE geodatabase
Geodatabase sdeGdb = new Geodatabase(new ArcSDEConnectionProperties("serverName", "5151", "userName", "pwd"));

//using the geodatabase object print information about the open connection
System.Diagnostics.Debug.Print(sdeGdb.ArcSDEConnectionProperties.Server);        //prints "serverName"
System.Diagnostics.Debug.Print(sdeGdb.ArcSDEConnectionProperties.Service);       //prints "5151"
System.Diagnostics.Debug.Print(sdeGdb.ArcSDEConnectionProperties.Username);      //prints "userName"
CopyVB.NET
Dim sdeGdb As Geodatabase = New Geodatabase(New ArcSDEConnectionProperties("serverName", "5151", "userName", "pwd"))

'using the geodatabase object print information about the open connection
System.Diagnostics.Debug.Print(sdeGdb.ArcSDEConnectionProperties.Server)   'prints "serverName"
System.Diagnostics.Debug.Print(sdeGdb.ArcSDEConnectionProperties.Service)  'prints "5151"
System.Diagnostics.Debug.Print(sdeGdb.ArcSDEConnectionProperties.Username) 'prints "userName"

See Also