title: Exchange Web Services - read subfolders
body: <p>I use Exchange Web Services (EWS) from Microsoft.</p>
  
  <p>My code is like this:</p>
  
  <pre><code>ExchangeService server = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
  </code></pre>
  
  <p>etc.</p>
  
  <p>I get the folders using this code:</p>
  
  <pre><code>Folder rootfolder = Folder.Bind(server, WellKnownFolderName.MsgFolderRoot);
  </code></pre>
  
  <p>The structure of my folders on Exchange Server is:</p>
  
  <pre><code>Inbox
  |
  |
  Folder1
  |
  |_Sub_Folder1
  | |
  | |_Sub_Sub_Folder1
  |   |
  |   |_Sub_Sub_Sub_Folder1
  |
  |_Sub_Folder2
  | |
  | |_Sub_Sub_Folder1
  |
  Folder2
  |
  |_Sub_Folder1
  |
  |_Sub_Folder2
  </code></pre>
  
  <p>When I use function which is presented above, I receive only the major folders :</p>
  
  <p><code>Inbox</code>, <code>Folder1</code> and <code>Folder2</code>.</p>
  
  <p>I would like to receive <code>SubFolders</code>... as well and next I would like to get items from <code>SubFolders</code>.</p>
  
  <p>For Example:</p>
  
  <pre><code>Folder1
  |
  |_Sub_Folder1
  | |
  | |_Sub_Sub_Folder1
  |   |
  |   |_Sub_Sub_Sub_Folder1 -&gt; I want to get these items
  </code></pre>
  
  <p>Could you help me and provide me an example of some code? What function should I use?</p>
  
  <p>I tried to use: </p>
  
  <pre><code>FindFoldersResults findFoldersResults2 = folder.FindFolders(new FolderView(100));
  </code></pre>
  
  <p>But when I receive for example folders: <code>Inbox</code>, <code>Folder1</code>, <code>Folder2</code> and I read <code>ChildFolderCount</code>, I don't receive number of <code>subfolders</code> ex. <code>2</code> -> I receive count <code>0</code>.</p>
  
  <p>What is wrong? I need to read these items from <code>subfolders</code>.</p>