gpt4 book ai didi

c# - C# 中的 TFS 查询关键字搜索

转载 作者:行者123 更新时间:2023-11-30 16:12:29 25 4
gpt4 key购买 nike

我正在使用以下查询,但问题在于“不包含”。报错

TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(
new Uri("http://abc1.com"));
WorkItemStore workItemStore = (WorkItemStore)tpc.GetService(typeof(WorkItemStore));
WorkItemCollection rdIncidentqueryResults = workItemStore.Query("Select [State], [Title] From WorkItems Where [Work Item Type] = 'Task' AND ([State] <> 'Resolved' AND [State] <> 'Closed') AND [Assigned to] = 'Test' AND [KeywordSearch] Does Not Contain 'test1'");

最佳答案

它应该是 NOT CONTAINS 而不是 Does Not Contain。您可以使用 Visual Studio 为您构建 TFS 查询并将输出保存到文件中作为 .wiq 文件,然后查看哪些语法有效。

enter image description here

关于c# - C# 中的 TFS 查询关键字搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22926759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com