title: Queryhistory for a range of changeset in TFS for specific info
body: <p>I am trying to use C# and TFS to get a release log out of the comments of changesets in TFS.</p>
  
  <p>I have this code:</p>
  
  <pre><code>        const string tfsURL = "http://dev.ger.test.com:8080/tfs";
  
          var tpc = new TfsTeamProjectCollection(new Uri(tfsURL));
  
          VersionControlServer vcs = (VersionControlServer)tpc.GetService(typeof(VersionControlServer));
          var tp = vcs.GetTeamProject(@"MyCollection");
          var path = tp.ServerItem;
          path += @"/Project/Subproject";
  
          var q = vcs.QueryHistory(path, VersionSpec.Latest, 0, RecursionType.Full, null, null, null, 1, true, true, false, false);
  
          foreach (var item in q)
          {
              Console.WriteLine(item);
              Logger(item.ToString(), false);
          }
  </code></pre>
  
  <p>which works, but it only returns the latest changeset and all information inside this changeset.</p>
  
  <p>So my questions are:</p>
  
  <p>How do I specify a range of changeset in queryhistory like VersionSpec.1000 to VersionSpec.Latest?</p>
  
  <p>How can I manipulate item in my foreach loop to display specifig information like item.Comment ?</p>
  
  <p>Any help is greatly appreciated!</p>
  
  <p>EDIT: I edited the QueryHistory to be</p>
  
  <pre><code>var q = vcs.QueryHistory(path, VersionSpec.Latest, 0, RecursionType.Full, null, new ChangesetVersionSpec(23618), VersionSpec.Latest, 1, true, true, false, false);
  </code></pre>
  
  <p>which changed nothing unfortunately.</p>