Delen via


VersionControlServer.QueryMerges Method (String, VersionSpec, String, VersionSpec, VersionSpec, VersionSpec, RecursionType, Boolean)

Gets the merge history of the requested item with an optional source.

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

Syntax

'Declaration
Public Function QueryMerges ( _
    sourcePath As String, _
    sourceVersion As VersionSpec, _
    targetPath As String, _
    targetVersion As VersionSpec, _
    versionFrom As VersionSpec, _
    versionTo As VersionSpec, _
    recursion As RecursionType, _
    showAll As Boolean _
) As ChangesetMerge()
public ChangesetMerge[] QueryMerges(
    string sourcePath,
    VersionSpec sourceVersion,
    string targetPath,
    VersionSpec targetVersion,
    VersionSpec versionFrom,
    VersionSpec versionTo,
    RecursionType recursion,
    bool showAll
)
public:
array<ChangesetMerge^>^ QueryMerges(
    String^ sourcePath, 
    VersionSpec^ sourceVersion, 
    String^ targetPath, 
    VersionSpec^ targetVersion, 
    VersionSpec^ versionFrom, 
    VersionSpec^ versionTo, 
    RecursionType recursion, 
    bool showAll
)
member QueryMerges : 
        sourcePath:string * 
        sourceVersion:VersionSpec * 
        targetPath:string * 
        targetVersion:VersionSpec * 
        versionFrom:VersionSpec * 
        versionTo:VersionSpec * 
        recursion:RecursionType * 
        showAll:bool -> ChangesetMerge[] 
public function QueryMerges(
    sourcePath : String, 
    sourceVersion : VersionSpec, 
    targetPath : String, 
    targetVersion : VersionSpec, 
    versionFrom : VersionSpec, 
    versionTo : VersionSpec, 
    recursion : RecursionType, 
    showAll : boolean
) : ChangesetMerge[]

Parameters

  • sourcePath
    Type: System.String

    The local or server path to the optional source item.

  • targetPath
    Type: System.String

    The local or server path to the required target item.

  • showAll
    Type: System.Boolean

    True to include merge history of renamed items. False to not include.

Return Value

Type: array<Microsoft.TeamFoundation.VersionControl.Client.ChangesetMerge[]
An array of ChangesetMerge objects.

.NET Framework Security

See Also

Reference

VersionControlServer Class

QueryMerges Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace