Condividi tramite


Classe RestorePlan

Represents a sequence of Database Restore operations which will recover a database to a particular state in a point in time.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Smo.RestorePlan

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Sintassi

'Dichiarazione
Public Class RestorePlan
'Utilizzo
Dim instance As RestorePlan
public class RestorePlan
public ref class RestorePlan
type RestorePlan =  class end
public class RestorePlan

Nel tipo RestorePlan sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico RestorePlan(Database) Initializes a new instance of the RestorePlan class with specified database.
Metodo pubblico RestorePlan(Server) Initializes a new instance of the RestorePlan class with specified server.
Metodo pubblico RestorePlan(Server, String) Initializes a new instance of the RestorePlan class with specified server and database name.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica AsyncStatus Gets the status of most recent asynchronous operation including possible errors.
Proprietà pubblica CloseExistingConnections Gets or sets a value indicating whether to close existing connections.
Proprietà pubblica DatabaseName Gets or sets the name of the database.
Proprietà pubblica RestoreAction Gets and sets the type of the Restore action: Database,File,Log,Page.
Proprietà pubblica RestoreOperations Gets or sets the restore operations.
Proprietà pubblica Server Gets or sets the erver where the Restore plan executes.
Proprietà pubblica TailLogBackupOperation Gets or sets the tail log backup operation.

In alto

Metodi

  Nome Descrizione
Metodo pubblico AddRestoreOperation(BackupSet) Adds the restore operation with specified backup set to be restored.
Metodo pubblico AddRestoreOperation(List<BackupSet>) Adds the restore operations with specified backup sets..
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico Execute Verifies and executes the Restore Plan.
Metodo pubblico ExecuteAsync Verifies and executes the Restore Plan async.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico Script Verifies the Restore plan and scripts the operation.
Metodo pubblico SetRestoreOptions Sets the restore options.
Metodo pubblico ToString Ereditato da Object.
Metodo pubblico Verify Verifies the restore plan.

In alto

Eventi

  Nome Descrizione
Evento pubblico Complete Occurs when the restore plan is completed.
Evento pubblico Information Occurs when the server sends information.
Evento pubblico NextMedia Occurs when the next media needs to be loaded.
Evento pubblico NextRestore Occurs when the next restore occurs.
Evento pubblico PercentComplete Occurs when the server sends percent complete information.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo