Gets the name of the geodatabase but without the file extension for file geodatabases.

Namespace:  ESRI.ArcGISExplorer.Data

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

Syntax

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

Field Value

The name of the geodatabase without the file extension.

Remarks

For file geodatabases the short name is simply the file name but without the file extension.

For ArcSDE geodatabases opened using an ArcSDE connection file the short name is the name of the file but without the file extension.

For ArcSDE geodatabases opened using a ArcSDEConnectionProperties object, the short name will be "ArcSDE Data".

Examples

The code below creates a new Geodatabase object and opens a connection to a file geodatabase then returns some information about it including the short name of the geodatabase.
CopyC#
//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"
CopyVB.NET
'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