共用方式為


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,如果您下載使用物件傳回的檔案。這個呼叫將會更快速且需要較少頻寬,當參數是錯誤的 (未指定值) 的多載的預設值。

傳回值

型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
比對 VersionControlLabel 物件。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

QueryLabels 多載

Microsoft.TeamFoundation.VersionControl.Server 命名空間