This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManagerAdmin Interface > IDataServerManagerAdmin.GetGeodatabaseName Method (ArcObjects .NET 10.4 SDK) |
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
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.