Share via


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
    创建标签的用户。指定 null 与任何所有者。
  • includeItems
    类型:System.Boolean
    true 包括项目在标签。错误不包括。

返回值

类型:array<Microsoft.TeamFoundation.VersionControl.Client.VersionControlLabel[]
数组 VersionControlLabel 对象由查询。

.NET Framework 安全性

请参见

参考

VersionControlServer 类

QueryLabels 重载

Microsoft.TeamFoundation.VersionControl.Client 命名空间