查询从容器中的项。 如果路径指向文件或字符串,返回该项目。 如果路径指向文件夹,并返回该文件夹及其子项。 如果未指定路径,返回容器的所有项。
命名空间: 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
)
参数
- requestContext
类型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
请求上下文。
- containerId
类型:System.Int64
容器 ID.
- path
类型:System.String
项目的路径。查询的空为所有项目。
- includeProperties
类型:System.Boolean
设置为 true 将返回的项目的其他属性 (如 HashValue)。否则为 False。
返回值
类型:System.Collections.Generic.List<FileContainerItem>
与查询匹配的项。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。