共用方式為


Workspace.Merge Method (String, String, VersionSpec, VersionSpec, LockLevel, RecursionType, MergeOptions)

Merges the source to the target.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Function Merge ( _
    sourcePath As String, _
    targetPath As String, _
    versionFrom As VersionSpec, _
    versionTo As VersionSpec, _
    lockLevel As LockLevel, _
    recursion As RecursionType, _
    mergeOptions As MergeOptions _
) As GetStatus
public GetStatus Merge(
    string sourcePath,
    string targetPath,
    VersionSpec versionFrom,
    VersionSpec versionTo,
    LockLevel lockLevel,
    RecursionType recursion,
    MergeOptions mergeOptions
)
public:
GetStatus^ Merge(
    String^ sourcePath, 
    String^ targetPath, 
    VersionSpec^ versionFrom, 
    VersionSpec^ versionTo, 
    LockLevel lockLevel, 
    RecursionType recursion, 
    MergeOptions mergeOptions
)
member Merge : 
        sourcePath:string * 
        targetPath:string * 
        versionFrom:VersionSpec * 
        versionTo:VersionSpec * 
        lockLevel:LockLevel * 
        recursion:RecursionType * 
        mergeOptions:MergeOptions -> GetStatus
public function Merge(
    sourcePath : String, 
    targetPath : String, 
    versionFrom : VersionSpec, 
    versionTo : VersionSpec, 
    lockLevel : LockLevel, 
    recursion : RecursionType, 
    mergeOptions : MergeOptions
) : GetStatus

Parameters

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.GetStatus
A GetStatus object that indicates how many operations, conflicts, errors, and so on occurred when the Get operation was being processed.

Remarks

The target path of the merge must be mapped.

.NET Framework Security

See Also

Reference

Workspace Class

Merge Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace