title: Access TFS Team Query from Client Object API
body: <p>Is there a way to run a shared team query, by name, through the TFS 2013 client object API</p>
  
  <p>I'm working on a C# script that will do some work based off of the results of a shared team query. I don't want to have to maintain the query in the TFS UI as well as in my script; I'd prefer to just run the registered query that my team uses, but then just play with the results. When I write "registered query" I'm just referring to a query that I wrote in the TFS UI and saved as a shared query.</p>
  
  <p>In other words: I'd like to use the TFS UI to create a query, save the file in my "shared queries" list, call it "foo", then access foo from the client object API in my script.</p>
  
  <p>I see that there is a <code>GetQueryDefinition(GUID)</code> method off of <code>WorkItemStore</code>, but where would I get the <code>GUID</code> for a shared team query?</p>