进行查询以查找与提供的查询匹配的测试用例结果。
命名空间:  Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
语法
声明
Function Query ( _
    queryText As String _
) As ITestCaseResultCollection
ITestCaseResultCollection Query(
    string queryText
)
ITestCaseResultCollection^ Query(
    String^ queryText
)
abstract Query : 
        queryText:string -> ITestCaseResultCollection 
function Query(
    queryText : String
) : ITestCaseResultCollection
参数
- queryText
 类型:System.String
 将要执行的工作项查询语言 (WIQL)。
返回值
类型:Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResultCollection
匹配测试用例结果的列表。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。