ArcGIS Explorer Component Help |
Geodatabase..::.ArcSDEConnectionProperties Property |
Geodatabase Class Example See Also |
Gets the connection information used to open the ArcSDE Geodatabase.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public ArcSDEConnectionProperties ArcSDEConnectionProperties { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property ArcSDEConnectionProperties As ArcSDEConnectionProperties |
Field Value
An ArcSDEConnectionProperties object which represents the information required to connect to an ArcSDE geodatabase. The value will always be nullNothingnullptra null reference (Nothing in Visual Basic) for file geodatabases.Examples
The code below creates a new Geodatabase object, 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"