title: EWS - Access All Shared Calendars
body: <p>I've got the following code:</p>
  
  <pre><code>    private void ListCalendarFolders(ref List&lt;EBCalendar&gt; items, int offset)
      {
          var pageSize = 100;
          var view = new FolderView(pageSize, offset, OffsetBasePoint.Beginning);
          view.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties);
          view.PropertySet.Add(FolderSchema.DisplayName);
          view.PropertySet.Add(FolderSchema.EffectiveRights);
  
          view.Traversal = FolderTraversal.Deep;
  
          FindFoldersResults findFolderResults = service.FindFolders(WellKnownFolderName.MsgFolderRoot, view);
          foreach (Folder myFolder in findFolderResults.Folders)
          {
              if (myFolder is CalendarFolder)
              {
                  var folder = myFolder as CalendarFolder;
                  items.Add(EBCalendar.FromEWSFolder(folder));
              }
          }
  
          if (findFolderResults.MoreAvailable)
          {
              offset = offset + pageSize;
              ListCalendarFolders(ref items, offset);
          }
      }
  </code></pre>
  
  <p>Where <code>service</code> is an <code>ExchangeService</code> instance.  Unfortunately, it still lists folders that have been deleted, and it doesn't list shared calendars.</p>
  
  <p>How can I get it to list all the shared calendars, and how can I get it to not include the folders that have been deleted?</p>