TeamFoundationVersionControlService.QueryLabels 方法 (TeamFoundationRequestContext, String, String, String, String, String, String, VersionSpec, Boolean, Boolean)

符合指定之欄位的標籤傳回清單中。

為比較中, null 欄位未使用。

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

語法

'宣告
Public Function QueryLabels ( _
    requestContext As TeamFoundationRequestContext, _
    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 TeamFoundationDataReader
public TeamFoundationDataReader QueryLabels(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    string labelName,
    string labelScope,
    string owner,
    string filterItem,
    VersionSpec versionFilterItem,
    bool includeItems,
    bool generateDownloadUrls
)

參數

  • labelName
    類型:System.String
    符合其標籤或萬用字元的清單。
  • labelScope
    類型:System.String
    指定範圍標籤的項目。所有標記會在項目下傳回。
  • filterItem
    類型:System.String
    如果不是空的,包含這個項目只會傳回標籤 (伺服器或本機路徑)。
  • includeItems
    類型:System.Boolean
    如果為 True,則傳回的 VersionControlLabel 物件項目成員將填入。
  • generateDownloadUrls
    類型:System.Boolean
    如果為 True,伺服器將包含需要下載檔案的資訊。請設定為 true,如果您下載使用物件傳回的檔案。呼叫會更快速且需要較少的頻寬,當這個參數為 false (沒有指定它) 的多載的預設值。

傳回值

類型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
符合 VersionControlLabel 物件。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

QueryLabels 多載

Microsoft.TeamFoundation.VersionControl.Server 命名空間