Delen via


TeamFoundationVersionControlService.QueryMergeCandidates Method (TeamFoundationRequestContext, String, String, ItemSpec, ItemSpec, MergeOptionsEx, PathLength)

Returns the set of changesets that need to be merged from source to target.

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

Syntax

'Declaration
Public Function QueryMergeCandidates ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    source As ItemSpec, _
    target As ItemSpec, _
    options As MergeOptionsEx, _
    maxClientPathLength As PathLength _
) As List(Of MergeCandidate)
public List<MergeCandidate> QueryMergeCandidates(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    ItemSpec source,
    ItemSpec target,
    MergeOptionsEx options,
    PathLength maxClientPathLength
)
public:
List<MergeCandidate^>^ QueryMergeCandidates(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ workspaceOwner, 
    ItemSpec^ source, 
    ItemSpec^ target, 
    MergeOptionsEx options, 
    PathLength maxClientPathLength
)
member QueryMergeCandidates : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        workspaceOwner:string * 
        source:ItemSpec * 
        target:ItemSpec * 
        options:MergeOptionsEx * 
        maxClientPathLength:PathLength -> List<MergeCandidate> 
public function QueryMergeCandidates(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    workspaceOwner : String, 
    source : ItemSpec, 
    target : ItemSpec, 
    options : MergeOptionsEx, 
    maxClientPathLength : PathLength
) : List<MergeCandidate>

Parameters

  • workspaceName
    Type: System.String

    Workspace name used to qualify local paths.

  • workspaceOwner
    Type: System.String

    Workspace owner used to qualify local paths.

Return Value

Type: System.Collections.Generic.List<MergeCandidate>
Array of MergeCandidate objects.

Remarks

If source and target are not related, throws a NoMergeRelationshipException.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

QueryMergeCandidates Overload

Microsoft.TeamFoundation.VersionControl.Server Namespace