Freigeben über


RestoreOptions-Klasse

Represents the restore options.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Smo.RestoreOptions

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

Syntax

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

Der RestoreOptions-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode RestoreOptions Initializes a new instance of the RestoreOptions class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Blocksize Specifies the physical block size, in bytes.
Öffentliche Eigenschaft BufferCount Specifies the total number of I/O buffers to be used for the restore operation.
Öffentliche Eigenschaft ClearSuspectPageTableAfterRestore Gets or sets whether to delete entries in the suspect page table after restore.
Öffentliche Eigenschaft ContinueAfterError Gets or sets whether the restore operation is to continue after an error is encountered.
Öffentliche Eigenschaft KeepReplication Gets or sets whether to prevent replication settings from being removed when a database backup or log backup is restored on a warm standby server and the database is recovered.
Öffentliche Eigenschaft MaxTransferSize Gets or sets the largest unit of transfer in bytes to be used between the backup media and SQL Server.
Öffentliche Eigenschaft PercentCompleteNotification Gets or sets the percentage interval for PercentCompleteEventHandler event handler calls for individual Restore Operations.
Öffentliche Eigenschaft RecoveryState Gets or sets the recovery state.
Öffentliche Eigenschaft ReplaceDatabase Gets or sets SQL Server should create the specified database and its related files even if another database already exists with the same name
Öffentliche Eigenschaft SetRestrictedUser Gets or sets whether to restrict access for the newly restored database to members of the db_owner, dbcreator, or sysadmin roles.
Öffentliche Eigenschaft StandByFile Undo uncommitted transactions, but save the undo actions in a standby file that allows the recovery effects to be reversed.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
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 ToString (Geerbt von Object.)

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