title: TFS API - How to fetch work item(s) from specific Team Project
body: <p>I am trying to query a single team project in the main <code>TfsTeamProjectCollection</code> which contains 194 Team Projects in total. I know exactly how to get a <code>WorkItem</code> by Id from a <code>WorkItemStore</code>. The thing is, that by doing this, the API searches in <em>ALL</em> of the projects in the collection and the query takes about a minute. This is way too slow, there must be a way to query work items directly from a single team project ? Here is the code I have:</p>
  
  <pre><code>    private Uri collectionUri;
      private TfsTeamProjectCollection projectCollection;
      private WorkItemStore workItemStore;
  
      public Project GetTeamProject()
      {
          projectCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(collectionUri);
  
          workItemStore = projectCollection.GetService&lt;WorkItemStore&gt;();
          Project teamProject = workItemStore.Projects[TFS_PROJECT_KEY];
          return teamProject;
      }
  </code></pre>
  
  <p>Now that I have the Team Project I'm interested in, how can I query for work items by ID or just get all work items in this project ?</p>