This document is archived and information here might be outdated. Recommended version. |
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
);
[C++] Parameters dataFileName [in]
dataFileName 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.