Udostępnij przez


DatabaseFileMappingsDictionary.Add Method (String, String)

Adds the specified database source file path and its associated database target file path to the dictionary.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
Public Sub Add ( _
    sourceFilePath As String, _
    targetFilePath As String _
)
public void Add (
    string sourceFilePath,
    string targetFilePath
)
public:
void Add (
    String^ sourceFilePath, 
    String^ targetFilePath
)
public void Add (
    String sourceFilePath, 
    String targetFilePath
)
public function Add (
    sourceFilePath : String, 
    targetFilePath : String
)

Parameters

  • sourceFilePath
    T.System.String that identifies the source database file path
  • targetFilePath
    T.System.String that identifies the target database file path

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.