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
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
要求內容。
- workspaceName
型別:System.String
- workspaceOwner
型別:System.String
- labelName
型別:System.String
比對其標籤或萬用字元的名稱。
- labelScope
型別:System.String
指定標籤的範圍項目。所有標籤上或下項目下傳回。
- owner
型別:System.String
標籤擁有人。
- filterItem
型別:System.String
如果不是空的,包含這個項目只會傳回標籤 (伺服器或本機路徑)。
- versionFilterItem
型別:Microsoft.TeamFoundation.VersionControl.Server.VersionSpec
filterItem 的版本規格。如果覆寫, filterItem 是空的。
- includeItems
型別:System.Boolean
如果為 true,則傳回的物件 VersionControlLabel 項目成員將會填入。
- generateDownloadUrls
型別:System.Boolean
如果為 true,伺服器將會包含需要下載檔案的相關資訊。請設定這個屬性設定為 True,如果您下載使用物件傳回的檔案。這個呼叫將會更快速且需要較少頻寬,當參數是錯誤的 (未指定值) 的多載的預設值。
傳回值
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
比對 VersionControlLabel 物件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。