Edit

Share via


Api.JetRestoreInstance method

Restores and recovers a streaming backup of an instance including all the attached databases. It is designed to work with a backup created with the JetBackupInstance(JET_INSTANCE, String, BackupGrbit, JET_PFNSTATUS) function. This is the simplest and most encapsulated restore function.

Namespace:  Microsoft.Isam.Esent.Interop
Assembly:  Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)

Syntax

'Declaration
Public Shared Sub JetRestoreInstance ( _
    instance As JET_INSTANCE, _
    source As String, _
    destination As String, _
    statusCallback As JET_PFNSTATUS _
)
'Usage
Dim instance As JET_INSTANCE
Dim source As String
Dim destination As String
Dim statusCallback As JET_PFNSTATUSApi.JetRestoreInstance(instance, _
    source, destination, statusCallback)
public static void JetRestoreInstance(
    JET_INSTANCE instance,
    string source,
    string destination,
    JET_PFNSTATUS statusCallback
)

Parameters

  • destination
    Type: System.String

    Name of the folder where the database files from the backup set will be copied and recovered. If this is set to null, the database files will be copied and recovered to their original location.

See also

Reference

Api class

Api members

Microsoft.Isam.Esent.Interop namespace