Repository.QueryLabels 方法

符合指定之欄位的標籤傳回清單中。 為比較中, null 欄位未使用。

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

語法

'宣告
<WebMethodAttribute> _
Public Function QueryLabels ( _
    workspaceName As String, _
    workspaceOwner As String, _
    labelName As String, _
    labelScope As String, _
    owner As String, _
    filterItem As String, _
    versionFilterItem As VersionSpec, _
    includeItems As Boolean, _
    generateDownloadUrls As Boolean _
) As StreamingCollection(Of VersionControlLabel)
[WebMethodAttribute]
public StreamingCollection<VersionControlLabel> QueryLabels(
    string workspaceName,
    string workspaceOwner,
    string labelName,
    string labelScope,
    string owner,
    string filterItem,
    VersionSpec versionFilterItem,
    bool includeItems,
    bool generateDownloadUrls
)

參數

  • labelName
    類型:System.String
    符合其標籤或萬用字元的清單。
  • labelScope
    類型:System.String
    指定範圍標籤的項目。所有標記會在項目下傳回。
  • includeItems
    類型:System.Boolean
    如果為 True,則傳回的 VersionControlLabel 物件項目成員將填入。

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<VersionControlLabel>
符合 VersionControlLabel 物件。

.NET Framework 安全性

請參閱

參考

Repository 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間