共用方式為


Repository.QueryMerges Method

Returns merge history.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueryMerges ( _
    workspaceName As String, _
    workspaceOwner As String, _
    source As ItemSpec, _
    versionSource As VersionSpec, _
    target As ItemSpec, _
    versionTarget As VersionSpec, _
    versionFrom As VersionSpec, _
    versionTo As VersionSpec, _
    maxChangesets As Integer, _
    showAll As Boolean, _
    <OutAttribute> ByRef changesets As List(Of Changeset) _
) As List(Of ChangesetMerge)
[WebMethodAttribute]
public List<ChangesetMerge> QueryMerges(
    string workspaceName,
    string workspaceOwner,
    ItemSpec source,
    VersionSpec versionSource,
    ItemSpec target,
    VersionSpec versionTarget,
    VersionSpec versionFrom,
    VersionSpec versionTo,
    int maxChangesets,
    bool showAll,
    out List<Changeset> changesets
)
[WebMethodAttribute]
public:
List<ChangesetMerge^>^ QueryMerges(
    String^ workspaceName, 
    String^ workspaceOwner, 
    ItemSpec^ source, 
    VersionSpec^ versionSource, 
    ItemSpec^ target, 
    VersionSpec^ versionTarget, 
    VersionSpec^ versionFrom, 
    VersionSpec^ versionTo, 
    int maxChangesets, 
    bool showAll, 
    [OutAttribute] List<Changeset^>^% changesets
)
[<WebMethodAttribute>]
member QueryMerges : 
        workspaceName:string * 
        workspaceOwner:string * 
        source:ItemSpec * 
        versionSource:VersionSpec * 
        target:ItemSpec * 
        versionTarget:VersionSpec * 
        versionFrom:VersionSpec * 
        versionTo:VersionSpec * 
        maxChangesets:int * 
        showAll:bool * 
        changesets:List<Changeset> byref -> List<ChangesetMerge> 
public function QueryMerges(
    workspaceName : String, 
    workspaceOwner : String, 
    source : ItemSpec, 
    versionSource : VersionSpec, 
    target : ItemSpec, 
    versionTarget : VersionSpec, 
    versionFrom : VersionSpec, 
    versionTo : VersionSpec, 
    maxChangesets : int, 
    showAll : boolean, 
    changesets : List<Changeset>
) : List<ChangesetMerge>

Parameters

  • workspaceName
    Type: System.String

    Workspace name if local paths are specified.

  • workspaceOwner
    Type: System.String

    Workspace owner if local paths are specified.

  • maxChangesets
    Type: System.Int32

    Maximum number of target changesets to return.

  • showAll
    Type: System.Boolean

    Indicates whether to include merge history of renamed items.

Return Value

Type: System.Collections.Generic.List<ChangesetMerge>
Returns List<T>.

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace