Поделиться через


Workspace.Merge Method (ItemSpec, String, VersionSpec, VersionSpec, LockLevel, MergeOptionsEx)

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 ( _
    source As ItemSpec, _
    targetPath As String, _
    versionFrom As VersionSpec, _
    versionTo As VersionSpec, _
    lockLevel As LockLevel, _
    mergeOptions As MergeOptionsEx _
) As GetStatus
public GetStatus Merge(
    ItemSpec source,
    string targetPath,
    VersionSpec versionFrom,
    VersionSpec versionTo,
    LockLevel lockLevel,
    MergeOptionsEx mergeOptions
)
public:
GetStatus^ Merge(
    ItemSpec^ source, 
    String^ targetPath, 
    VersionSpec^ versionFrom, 
    VersionSpec^ versionTo, 
    LockLevel lockLevel, 
    MergeOptionsEx mergeOptions
)
member Merge : 
        source:ItemSpec * 
        targetPath:string * 
        versionFrom:VersionSpec * 
        versionTo:VersionSpec * 
        lockLevel:LockLevel * 
        mergeOptions:MergeOptionsEx -> GetStatus 
public function Merge(
    source : ItemSpec, 
    targetPath : String, 
    versionFrom : VersionSpec, 
    versionTo : VersionSpec, 
    lockLevel : LockLevel, 
    mergeOptions : MergeOptionsEx
) : GetStatus

Parameters

  • targetPath
    Type: System.String
    The target path of the Merge operation.

Return Value

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

Remarks

The target path of the Merge operation must be mapped.

.NET Framework Security

See Also

Reference

Workspace Class

Merge Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace