共用方式為


Restore 建構函式

Initializes a new instance of the Restore class.

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

語法

'宣告
Public Sub New
'用途
Dim instance As New Restore()
public Restore()
public:
Restore()
new : unit -> Restore
public function Restore()

備註

The default constructor initializes any fields to their default values.

範例

The following code example demonstrates how to define a new instance of the Restore class.

VB

Dim rs As Restore
rs = New Restore

PowerShell

$rs = new-object Microsoft.SqlServer.Management.Smo.Restore

請參閱

參考

Restore 類別

Restore 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

RESTORE (Transact-SQL)

SQL Server 資料庫的備份與還原