共用方式為


RestoreOptions 類別

Represents the restore options.

繼承階層

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)

語法

'宣告
Public Class RestoreOptions
'用途
Dim instance As RestoreOptions
public class RestoreOptions
public ref class RestoreOptions
type RestoreOptions =  class end
public class RestoreOptions

RestoreOptions 型別公開下列成員。

建構函式

  名稱 說明
公用方法 RestoreOptions Initializes a new instance of the RestoreOptions class.

上層

屬性

  名稱 說明
公用屬性 Blocksize Specifies the physical block size, in bytes.
公用屬性 BufferCount Specifies the total number of I/O buffers to be used for the restore operation.
公用屬性 ClearSuspectPageTableAfterRestore Gets or sets whether to delete entries in the suspect page table after restore.
公用屬性 ContinueAfterError Gets or sets whether the restore operation is to continue after an error is encountered.
公用屬性 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.
公用屬性 MaxTransferSize Gets or sets the largest unit of transfer in bytes to be used between the backup media and SQL Server.
公用屬性 PercentCompleteNotification Gets or sets the percentage interval for PercentCompleteEventHandler event handler calls for individual Restore Operations.
公用屬性 RecoveryState Gets or sets the recovery state.
公用屬性 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
公用屬性 SetRestrictedUser Gets or sets whether to restrict access for the newly restored database to members of the db_owner, dbcreator, or sysadmin roles.
公用屬性 StandByFile Undo uncommitted transactions, but save the undo actions in a standby file that allows the recovery effects to be reversed.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Management.Smo 命名空間