VersionControlServer.QueryLabels 方法 (String, String, String, Boolean)

陣列的查詢 VersionControlLabel 物件套用至儲存機制中的項目。

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

語法

'宣告
Public Function QueryLabels ( _
    labelName As String, _
    labelScope As String, _
    owner As String, _
    includeItems As Boolean _
) As VersionControlLabel()
public VersionControlLabel[] QueryLabels(
    string labelName,
    string labelScope,
    string owner,
    bool includeItems
)

參數

  • labelName
    類型:System.String
    正在查詢之標籤的名稱。
  • labelScope
    類型:System.String
    表示標籤定義範圍的儲存機制路徑。
  • owner
    類型:System.String
    建立標籤的使用者。指定間距比對任何擁有者。
  • includeItems
    類型:System.Boolean
    true 表示包含項目在標籤中。包含 false。

傳回值

類型:array<Microsoft.TeamFoundation.VersionControl.Client.VersionControlLabel[]
VersionControlLabel 物件的陣列由查詢。

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

QueryLabels 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間