Dela via


Restore.RelocateFiles Property

Gets the array of database logical file names and operating system physical file names used to redirect database storage when a database is restored to a new physical location.

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

Syntax

'Declaration
Public ReadOnly Property RelocateFiles As ArrayList 
    Get
'Usage
Dim instance As Restore 
Dim value As ArrayList 

value = instance.RelocateFiles
public ArrayList RelocateFiles { get; }
public:
property ArrayList^ RelocateFiles {
    ArrayList^ get ();
}
member RelocateFiles : ArrayList
function get RelocateFiles () : ArrayList

Property Value

Type: System.Collections.ArrayList
An ArrayList object that specifies the file names.

Remarks

The RelocateFiles property requires the RelocateFile object.

See Also

Reference

Restore Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

RESTORE (Transact-SQL)

Back Up and Restore of SQL Server Databases