共用方式為


Workspace.Merge 方法 (String, String, VersionSpec, VersionSpec, LockLevel, RecursionType, MergeOptionsEx)

合併來源到目標。

命名空間:  Microsoft.TeamFoundation.VersionControl.Client
組件:  Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

語法

'宣告
Public Function Merge ( _
    sourcePath As String, _
    targetPath As String, _
    versionFrom As VersionSpec, _
    versionTo As VersionSpec, _
    lockLevel As LockLevel, _
    recursion As RecursionType, _
    mergeOptions As MergeOptionsEx _
) As GetStatus
public GetStatus Merge(
    string sourcePath,
    string targetPath,
    VersionSpec versionFrom,
    VersionSpec versionTo,
    LockLevel lockLevel,
    RecursionType recursion,
    MergeOptionsEx mergeOptions
)

參數

傳回值

型別:Microsoft.TeamFoundation.VersionControl.Client.GetStatus
GetStatus 物件指示多少作業,衝突,錯誤,依此類推,發生取得處理作業。

備註

必須將合併的目標路徑。

.NET Framework 安全性

請參閱

參考

Workspace 類別

Merge 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間