RestorePlan 類別
Represents a sequence of Database Restore operations which will recover a database to a particular state in a point in time.
繼承階層
System.Object
Microsoft.SqlServer.Management.Smo.RestorePlan
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.SmoExtended (在 Microsoft.SqlServer.SmoExtended.dll 中)
語法
'宣告
Public Class RestorePlan
'用途
Dim instance As RestorePlan
public class RestorePlan
public ref class RestorePlan
type RestorePlan = class end
public class RestorePlan
RestorePlan 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
RestorePlan(Database) | Initializes a new instance of the RestorePlan class with specified database. | |
RestorePlan(Server) | Initializes a new instance of the RestorePlan class with specified server. | |
RestorePlan(Server, String) | Initializes a new instance of the RestorePlan class with specified server and database name. |
上層
屬性
名稱 | 說明 | |
---|---|---|
AsyncStatus | Gets the status of most recent asynchronous operation including possible errors. | |
CloseExistingConnections | Gets or sets a value indicating whether to close existing connections. | |
DatabaseName | Gets or sets the name of the database. | |
RestoreAction | Gets and sets the type of the Restore action: Database,File,Log,Page. | |
RestoreOperations | Gets or sets the restore operations. | |
Server | Gets or sets the erver where the Restore plan executes. | |
TailLogBackupOperation | Gets or sets the tail log backup operation. |
上層
方法
名稱 | 說明 | |
---|---|---|
AddRestoreOperation(BackupSet) | Adds the restore operation with specified backup set to be restored. | |
AddRestoreOperation(List<BackupSet>) | Adds the restore operations with specified backup sets.. | |
Equals | (繼承自 Object。) | |
Execute | Verifies and executes the Restore Plan. | |
ExecuteAsync | Verifies and executes the Restore Plan async. | |
Finalize | (繼承自 Object。) | |
GetHashCode | (繼承自 Object。) | |
GetType | (繼承自 Object。) | |
MemberwiseClone | (繼承自 Object。) | |
Script | Verifies the Restore plan and scripts the operation. | |
SetRestoreOptions | Sets the restore options. | |
ToString | (繼承自 Object。) | |
Verify | Verifies the restore plan. |
上層
事件
名稱 | 說明 | |
---|---|---|
Complete | Occurs when the restore plan is completed. | |
Information | Occurs when the server sends information. | |
NextMedia | Occurs when the next media needs to be loaded. | |
NextRestore | Occurs when the next restore occurs. | |
PercentComplete | Occurs when the server sends percent complete information. |
上層
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。