RestorePlan-Klasse

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

Vererbungshierarchie

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

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

Syntax

'Declaration
Public Class RestorePlan
'Usage
Dim instance As RestorePlan
public class RestorePlan
public ref class RestorePlan
type RestorePlan =  class end
public class RestorePlan

Der RestorePlan-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode RestorePlan(Database) Initializes a new instance of the RestorePlan class with specified database.
Öffentliche Methode RestorePlan(Server) Initializes a new instance of the RestorePlan class with specified server.
Öffentliche Methode RestorePlan(Server, String) Initializes a new instance of the RestorePlan class with specified server and database name.

Zum Anfang

Eigenschaften

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

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode AddRestoreOperation(BackupSet) Adds the restore operation with specified backup set to be restored.
Öffentliche Methode AddRestoreOperation(List<BackupSet>) Adds the restore operations with specified backup sets..
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode Execute Verifies and executes the Restore Plan.
Öffentliche Methode ExecuteAsync Verifies and executes the Restore Plan async.
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Script Verifies the Restore plan and scripts the operation.
Öffentliche Methode SetRestoreOptions Sets the restore options.
Öffentliche Methode ToString (Geerbt von Object.)
Öffentliche Methode Verify Verifies the restore plan.

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis Complete Occurs when the restore plan is completed.
Öffentliches Ereignis Information Occurs when the server sends information.
Öffentliches Ereignis NextMedia Occurs when the next media needs to be loaded.
Öffentliches Ereignis NextRestore Occurs when the next restore occurs.
Öffentliches Ereignis PercentComplete Occurs when the server sends percent complete information.

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace