共用方式為


Restore 建構函式 (String, BackupSet)

Initializes a new instance of the Restore class with specified destination database name and backup set.

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

語法

'宣告
Public Sub New ( _
    DestinationDatabaseName As String, _
    backupSet As BackupSet _
)
'用途
Dim DestinationDatabaseName As String 
Dim backupSet As BackupSet 

Dim instance As New Restore(DestinationDatabaseName, _
    backupSet)
public Restore(
    string DestinationDatabaseName,
    BackupSet backupSet
)
public:
Restore(
    String^ DestinationDatabaseName, 
    BackupSet^ backupSet
)
new : 
        DestinationDatabaseName:string * 
        backupSet:BackupSet -> Restore
public function Restore(
    DestinationDatabaseName : String, 
    backupSet : BackupSet
)

參數

  • DestinationDatabaseName
    型別:System.String
    The name of the database to be restored.

請參閱

參考

Restore 類別

Restore 多載

Microsoft.SqlServer.Management.Smo 命名空間