Gets the name of the geodatabase.

Namespace:  ESRI.ArcGISExplorer.Data

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


public string Name { get; }
Visual Basic (Declaration)
Public ReadOnly Property Name As String

Field Value

The name of the geodatabase, the meaning of which depends on the geodatabase Type.


For file geodatabases the name is simply the file name including the file extension.

For enterprise geodatabases opened using the "database" parameter, the name will be the database name, otherwise it will be an empty string.


The code below creates a new Geodatabase object and opens a connection to a file geodatabase then returns some information about it including the name of the geodatabase.
//Connect to a file geodatabase
Geodatabase fileGdb = new Geodatabase(@"C:\Data\Scotland.gdb");

//Print the type of geodatabase
System.Diagnostics.Debug.Print(fileGdb.Type.ToString()); //prints "File"

//Print the geodatabase path
System.Diagnostics.Debug.Print(fileGdb.Path); //prints "C:\Data\Scotland.gdb"

//Print the short name for the geodatabase
System.Diagnostics.Debug.Print(fileGdb.Name); //prints "Scotland.gdb"

//Print the short name for the geodatabase
System.Diagnostics.Debug.Print(fileGdb.ShortName); //prints "Scotland"
'Connect to a file geodatabase
Dim fileGdb As Geodatabase = New Geodatabase("C:\Data\Scotland.gdb")

'Print the type of geodatabase
System.Diagnostics.Debug.Print(fileGdb.Type) 'prints "File"

'Print the geodatabase path
System.Diagnostics.Debug.Print(fileGdb.Path) 'prints "C:\Data\Scotland.gdb"

'Print the short name for the geodatabase
System.Diagnostics.Debug.Print(fileGdb.Name) 'prints "Scotland.gdb"

'Print the short name for the geodatabase
System.Diagnostics.Debug.Print(fileGdb.ShortName) 'prints "Scotland"

See Also