This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManagerAdmin Interface > IDataServerManagerAdmin.RestoreGeodatabase Method (ArcObjects .NET 10.4 SDK) |
Restores a backup for the specified Geodatabase.
[Visual Basic .NET] Public Sub RestoreGeodatabase ( _ ByVal gdbName As String, _ ByVal backupFileName As String, _ ByVal dbFilePath As String _ )
[C#] public void RestoreGeodatabase ( string gdbName, string backupFileName, string dbFilePath );
[C++]
HRESULT RestoreGeodatabase(
BSTR gdbName,
BSTR backupFileName,
BSTR dbFilePath
);
[C++]
Parameters gdbName [in] gdbName is a parameter of type BSTR backupFileName [in] backupFileName is a parameter of type BSTR dbFilePath [in] dbFilePath is a parameter of type BSTR
This method restores a Geodatabase from a previous backup.
If the dbFilePath parameter is set to 0, the database will be backed up to it's original location. Specifying the dbFilePath parameter allows you to change the physical location of the data file. In this case, the dbFilePath parameter should specify the full path of the new location, including the new file name.
You must be a server adminstrator to perform this operation.