Restore Constructor

Initializes a new instance of the Restore class.

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

Syntax

'Declaration
Public Sub New
'Usage
Dim instance As New Restore()
public Restore()
public:
Restore()
new : unit -> Restore
public function Restore()

Remarks

The default constructor initializes any fields to their default values.

Examples

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

See Also

Reference

Restore Class

Restore Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

RESTORE (Transact-SQL)

Back Up and Restore of SQL Server Databases