Partilhar via


Classe RestorePlan

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

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (em Microsoft.SqlServer.SmoExtended.dll)

Sintaxe

'Declaração
Public Class RestorePlan
'Uso
Dim instance As RestorePlan
public class RestorePlan
public ref class RestorePlan
type RestorePlan =  class end
public class RestorePlan

O tipo RestorePlan expõe os membros a seguir.

Construtores

  Nome Descrição
Método público RestorePlan(Database) Initializes a new instance of the RestorePlan class with specified database.
Método público RestorePlan(Server) Initializes a new instance of the RestorePlan class with specified server.
Método público RestorePlan(Server, String) Initializes a new instance of the RestorePlan class with specified server and database name.

Início

Propriedades

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

Início

Métodos

  Nome Descrição
Método público AddRestoreOperation(BackupSet) Adds the restore operation with specified backup set to be restored.
Método público AddRestoreOperation(List<BackupSet>) Adds the restore operations with specified backup sets..
Método público Equals (Herdado de Object.)
Método público Execute Verifies and executes the Restore Plan.
Método público ExecuteAsync Verifies and executes the Restore Plan async.
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público Script Verifies the Restore plan and scripts the operation.
Método público SetRestoreOptions Sets the restore options.
Método público ToString (Herdado de Object.)
Método público Verify Verifies the restore plan.

Início

Eventos

  Nome Descrição
Evento público Complete Occurs when the restore plan is completed.
Evento público Information Occurs when the server sends information.
Evento público NextMedia Occurs when the next media needs to be loaded.
Evento público NextRestore Occurs when the next restore occurs.
Evento público PercentComplete Occurs when the server sends percent complete information.

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Smo