Return various properties on a database file.
[Visual Basic .NET] Public Sub GetFileProperties ( _ ByVal dbName As String, _ ByRef dataName As String, _ ByRef dataPhysicalName As String, _ ByRef dataFileSize As Integer, _ ByRef logName As String, _ ByRef logPhysicalName As String, _ ByRef logFileSize As Integer _ )
[C#] public void GetFileProperties ( string dbName, ref string dataName, ref string dataPhysicalName, ref int dataFileSize, ref string logName, ref string logPhysicalName, ref int logFileSize );
[C++]
HRESULT GetFileProperties(
BSTR dbName,
BSTR* dataName,
BSTR* dataPhysicalName,
long* dataFileSize,
BSTR* logName,
BSTR* logPhysicalName,
long* logFileSize
);
[C++]Parameters
dbName [in] dbName is a parameter of type BSTR dataName [out] dataName is a parameter of type BSTR dataPhysicalName [out] dataPhysicalName is a parameter of type BSTR dataFileSize [out] dataFileSize is a parameter of type long logName [out] logName is a parameter of type BSTR logPhysicalName [out] logPhysicalName is a parameter of type BSTR logFileSize [out] logFileSize is a parameter of type long
Product Availability
Description
This method returns information about the data files associated with this Geodatabase.
Remarks
The dbName input parameter specifies for which database the properites should be returned.
The dataName value returns the name of the database, which should match the Geodatabase name, since ArcGIS does not support different database and datafile names. It does not include the .mdf extension.
dataPhysicalName returns the file path for the mdf file storing the Geodatabase. It includes the .mdf extension.
The dataFileSize value returns the size of the file in MBs.
The logName value returns the name of the log file for the database. It does not include the .ldf extension.
logPhysicalName returns the file path for the ldf file storing the database log file. It includes the .ldf extension.
The logFileSize value returns the size of the file in MBs.