Compartir a través de


Clase RestorePlan

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

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Sintaxis

'Declaración
Public Class RestorePlan
'Uso
Dim instance As RestorePlan
public class RestorePlan
public ref class RestorePlan
type RestorePlan =  class end
public class RestorePlan

El tipo RestorePlan expone los siguientes miembros.

Constructores

  Nombre Descripción
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.

Arriba

Propiedades

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

Arriba

Métodos

  Nombre Descripción
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 (Se hereda 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 (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda 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 (Se hereda de Object.)
Método público Verify Verifies the restore plan.

Arriba

Eventos

  Nombre Descripción
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.

Arriba

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Management.Smo