2012-12-18 119 views

回答

2

你可以做到這一點要創建使用IN運營商WIQL查詢和上市Team Projects你感興趣

例如:

var wiql = @"SELECT * 
      FROM WorkItems 
      WHERE [System.TeamProject] IN ('Project1', 'Project2')"; 

using (var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(uri) 
{ 
    tfs.EnsureAuthenticated(); 
    var store= tfs.GetService<WorkItemStore>(); 
    var workItems = store.Query(wiql); 
} 
相關問題