使用提供的查询和上下文从服务器返回测试配置的集合。
命名空间:  Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
语法
声明
Function Query ( _
    queryText As String, _
    context As IDictionary _
) As ITestConfigurationCollection
ITestConfigurationCollection Query(
    string queryText,
    IDictionary context
)
ITestConfigurationCollection^ Query(
    String^ queryText, 
    IDictionary^ context
)
abstract Query : 
        queryText:string * 
        context:IDictionary -> ITestConfigurationCollection 
function Query(
    queryText : String, 
    context : IDictionary
) : ITestConfigurationCollection
参数
- queryText
 类型:System.String
 将执行的 WIQL。
- context
 类型:System.Collections.IDictionary
 指定 WIQL 参数值的字典。
返回值
类型:Microsoft.TeamFoundation.TestManagement.Client.ITestConfigurationCollection
匹配测试配置的集合。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。