Repository4.CompareLabels 方法

傳回有關的變更集資訊在兩個標記之間的項目。 包含指定之項目的 maxCount 最新的變更集將傳回。

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<WebMethodAttribute> _
Public Function CompareLabels ( _
    startLabelName As String, _
    startLabelScope As String, _
    endLabelName As String, _
    endLabelScope As String, _
    minChangeSet As Integer, _
    maxCount As Integer _
) As StreamingCollection(Of Changeset)
[WebMethodAttribute]
public StreamingCollection<Changeset> CompareLabels(
    string startLabelName,
    string startLabelScope,
    string endLabelName,
    string endLabelScope,
    int minChangeSet,
    int maxCount
)

參數

  • startLabelName
    類型:System.String
    開始範圍的標記名稱。
  • startLabelScope
    類型:System.String
    開始範圍的標籤的範圍。
  • endLabelName
    類型:System.String
    結束範圍的標記名稱。
  • endLabelScope
    類型:System.String
    結束範圍的標籤的範圍。
  • minChangeSet
    類型:System.Int32
    傳回最舊的變更集。0 == 全部。
  • maxCount
    類型:System.Int32
    傳回的變更集最大數目。

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Changeset>
陣列變更集,最舊的第一個。

.NET Framework 安全性

請參閱

參考

Repository4 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間