ArcObjects Library Reference (DataSourcesGDB)  

IDataServerManagerAdmin.GetGeodatabaseName Method

Returns the Database name from the database file.

[Visual Basic .NET]
Public Function GetGeodatabaseName ( _
    ByVal dataFileName As String _
) As String
[C#]
public string GetGeodatabaseName (
    string dataFileName
);
[C++]
HRESULT GetGeodatabaseName(
  BSTR dataFileName,
  BSTR* dbName
);
[C++]

Parameters

dataFileName [in]   dataFileName is a parameter of type BSTR dbName [out, retval]   dbName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

This method returns the name of the Geodatabase inside a database server data file (.mdf).  For Database Servers, the Geodatabase name will also be equal to the name of the .mdf file.

See Also

IDataServerManagerAdmin Interface