다음을 통해 공유


Add 메서드

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
Public Sub Add ( _
    sourceFilePath As String, _
    targetFilePath As String _
)
‘사용 방법
Dim instance As DatabaseFileMappingsDictionary
Dim sourceFilePath As String
Dim targetFilePath As String

instance.Add(sourceFilePath, targetFilePath)
public void Add(
    string sourceFilePath,
    string targetFilePath
)
public:
void Add(
    String^ sourceFilePath, 
    String^ targetFilePath
)
member Add : 
        sourceFilePath:string * 
        targetFilePath:string -> unit 
public function Add(
    sourceFilePath : String, 
    targetFilePath : String
)

매개 변수

  • sourceFilePath
    형식: System. . :: . .String
    [T.System.String] that identifies the source database file path
  • targetFilePath
    형식: System. . :: . .String
    [T.System.String] that identifies the target database file path