title: How do I pass ItemSpec into GetBranchHistory()?
body: <p>I'm trying to get information about specific branches in TFS, so to start, I'm trying to create a variable to assign as a BranchHistoryTreeItem. However, when I pass in the ItemSpec, I'm getting an error on Spec (not the definition, but where it's passed into GetBranchHistory):</p>
  
  <blockquote>
    <p>Value of type 'Microsoft.TeamFoundation.VersionControl.Client.ItemSpec' cannot be converted to '1-dimensional array of Microsoft.TeamFoundation.VersionControl.Client.ItemSpec'</p>
  </blockquote>
  
  <p>I understand the error, but I'm not entirely sure why it throwing it. Isn't this data type exactly what it's looking for? I believe I have the ItemSpec declared correctly, but I'm a bit lost here. Can anyone offer some advice on why I'm getting this? Code:</p>
  
  <pre><code>Sub GetBranchInfo()
      Dim tfs As New TfsTeamProjectCollection(Common.BuildServerURI)
      Dim Version = tfs.GetService(Of VersionControlServer)()
      Dim Spec As New ItemSpec("$/Project1", RecursionType.None)
      Dim BranchHistory As New BranchHistoryTreeItem(Version.GetBranchHistory(Spec, VersionSpec.Latest))
  End Sub
  </code></pre>