TeamFoundationFileContainerService.QueryItems 方法 (TeamFoundationRequestContext, Int64, String, Boolean)

查询从容器中的项。 如果路径指向文件或字符串,返回该项目。 如果路径指向文件夹,并返回该文件夹及其子项。 如果未指定路径,返回容器的所有项。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Function QueryItems ( _
    requestContext As TeamFoundationRequestContext, _
    containerId As Long, _
    path As String, _
    includeProperties As Boolean _
) As List(Of FileContainerItem)
public List<FileContainerItem> QueryItems(
    TeamFoundationRequestContext requestContext,
    long containerId,
    string path,
    bool includeProperties
)

参数

  • path
    类型:System.String
    项目的路径。查询的空为所有项目。
  • includeProperties
    类型:System.Boolean
    设置为 true 将返回的项目的其他属性 (如 HashValue)。否则为 False。

返回值

类型:System.Collections.Generic.List<FileContainerItem>
与查询匹配的项。

.NET Framework 安全性

请参阅

参考

TeamFoundationFileContainerService 类

QueryItems 重载

Microsoft.TeamFoundation.Framework.Server 命名空间