title: How to search for a specific file in the source control of TFS inside a particular selected project?
body: <p>Code:</p>
  
  <pre><code>string spName = "usp_Test_Procedure.sql";
  var tfsPp = new TeamProjectPicker(TeamProjectPickerMode.SingleProject, false);
  tfsPp.ShowDialog();
  _tfs = tfsPp.SelectedTeamProjectCollection;
  if (tfsPp.SelectedProjects.Any())
  {
       _selectedTeamProject = tfsPp.SelectedProjects[0];
  }
  string selectedProjectName = _selectedTeamProject.Name;
  var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(_tfs.Uri);
  var vsStore = tfs.GetService&lt;VersionControlServer&gt;();
  var project = "project";
  var branchVersion = "1.0.0";
  var folders = vsStore.GetItems("$/" + selectedProjectName + "/*", RecursionType.Full);
  </code></pre>
  
  <p>How to <strong>search for a specific file</strong> in the <strong>source control of TFS</strong> inside a <strong>particular selected project and also selected branchversion</strong> in the dropdown menu by the user from the c# UI winforms application?</p>
  
  <p>Here the file I need to search is <code>usp_Test_Procedure.sql</code> which is present in the following path</p>
  
  <pre><code>$/selectedProjectName/project/1.0.0/UI/Scripts/usp_Test_Procedure.sql
  </code></pre>
  
  <p>Actually I am getting the above path from the foolowing code:</p>
  
  <pre><code>folders.Items[29956].ServerItem
  </code></pre>
  
  <p>But I need to know <strong>how to search for a specific file</strong> in the source control of TFS inside a particular selected project and also selected branchversion? Thanks. </p>