共用方式為


RepositoryExtensions.TrackMerges Method

Returns merges which occurred from a source item for a list of source changesets to a set of target items. The source and target items do not have to be directly related in merge history.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function TrackMerges ( _
    sourceChangesets As Integer(), _
    sourceItem As ItemIdentifier, _
    targetItems As List(Of ItemIdentifier), _
    pathFilter As ItemSpec, _
    <OutAttribute> ByRef partialTargetItems As StreamingCollection(Of String) _
) As StreamingCollection(Of ExtendedMerge)
[WebMethodAttribute]
public StreamingCollection<ExtendedMerge> TrackMerges(
    int[] sourceChangesets,
    ItemIdentifier sourceItem,
    List<ItemIdentifier> targetItems,
    ItemSpec pathFilter,
    out StreamingCollection<string> partialTargetItems
)
[WebMethodAttribute]
public:
StreamingCollection<ExtendedMerge^>^ TrackMerges(
    array<int>^ sourceChangesets, 
    ItemIdentifier^ sourceItem, 
    List<ItemIdentifier^>^ targetItems, 
    ItemSpec^ pathFilter, 
    [OutAttribute] StreamingCollection<String^>^% partialTargetItems
)
[<WebMethodAttribute>]
member TrackMerges : 
        sourceChangesets:int[] * 
        sourceItem:ItemIdentifier * 
        targetItems:List<ItemIdentifier> * 
        pathFilter:ItemSpec * 
        partialTargetItems:StreamingCollection<string> byref -> StreamingCollection<ExtendedMerge> 
public function TrackMerges(
    sourceChangesets : int[], 
    sourceItem : ItemIdentifier, 
    targetItems : List<ItemIdentifier>, 
    pathFilter : ItemSpec, 
    partialTargetItems : StreamingCollection<String>
) : StreamingCollection<ExtendedMerge>

Parameters

  • sourceChangesets
    Type: array<System.Int32[]

    List of source changesets.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<ExtendedMerge>
Returns StreamingCollection<T>.

.NET Framework Security

See Also

Reference

RepositoryExtensions Class

Microsoft.TeamFoundation.VersionControl.Server Namespace