RelocateFile Constructor (String, String)

Initializes a new instance of the RelocateFile class.

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

Syntax

'Declaration
Public Sub New ( _
    logicalFileName As String, _
    physicalFileName As String _
)
'Usage
Dim logicalFileName As String 
Dim physicalFileName As String 

Dim instance As New RelocateFile(logicalFileName, _
    physicalFileName)
public RelocateFile(
    string logicalFileName,
    string physicalFileName
)
public:
RelocateFile(
    String^ logicalFileName, 
    String^ physicalFileName
)
new : 
        logicalFileName:string * 
        physicalFileName:string -> RelocateFile
public function RelocateFile(
    logicalFileName : String, 
    physicalFileName : String
)

Parameters

Remarks

The default constructor initializes any fields to their default values.

Examples

Backing Up and Restoring Databases and Transaction Logs

See Also

Reference

RelocateFile Class

RelocateFile Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

RESTORE (Transact-SQL)

Back Up and Restore of SQL Server Databases