共用方式為


Repository5.QueryMergeCandidates Method

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
<WebMethodAttribute> _
Public Function QueryMergeCandidates ( _
    workspaceName As String, _
    workspaceOwner As String, _
    source As ItemSpec, _
    target As ItemSpec, _
    options As Integer, _
    maxClientPathLength As Integer _
) As List(Of MergeCandidate)
[WebMethodAttribute]
public List<MergeCandidate> QueryMergeCandidates(
    string workspaceName,
    string workspaceOwner,
    ItemSpec source,
    ItemSpec target,
    int options,
    int maxClientPathLength
)
[WebMethodAttribute]
public:
List<MergeCandidate^>^ QueryMergeCandidates(
    String^ workspaceName, 
    String^ workspaceOwner, 
    ItemSpec^ source, 
    ItemSpec^ target, 
    int options, 
    int maxClientPathLength
)
[<WebMethodAttribute>]
member QueryMergeCandidates : 
        workspaceName:string * 
        workspaceOwner:string * 
        source:ItemSpec * 
        target:ItemSpec * 
        options:int * 
        maxClientPathLength:int -> List<MergeCandidate> 
public function QueryMergeCandidates(
    workspaceName : String, 
    workspaceOwner : String, 
    source : ItemSpec, 
    target : ItemSpec, 
    options : int, 
    maxClientPathLength : int
) : 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.

  • maxClientPathLength
    Type: System.Int32

    The maximum client supported server path length.

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

Repository5 Class

Microsoft.TeamFoundation.VersionControl.Server Namespace