We recommend using Visual Studio 2017

Restore.RelocateFiles Property

Gets or sets 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)

public ArrayList RelocateFiles { get; }

Property Value

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

The RelocateFiles property requires the RelocateFile object.

Community Additions