This document is archived and information here might be outdated.  Recommended version.


IDataServerManagerAdmin.GetGeodatabaseName Method (ArcObjects .NET 10.6 SDK)
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
);
[C++]

Parameters dataFileName [in]
dataFileName 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