title: Exporting multiple emails using EWS Managed API
body: <p>I am using EWS Managed API 2.0 and have an array of <code>Microsoft.Exchange.WebServices.Data.ItemId</code> objects i would like to export from the server. I would like to export specific email properties only to reduce bandwith usage (especially no attachments).</p>
  
  <p>One way of doing this is to use the <code>ExchangeService.BindToItems</code> method with a <code>PropertySet</code>, but this method is somewhat problematic because if an error occurs for one email (for example, only html body and not text body as requested), the call fails and I haven't found a way to determine what ItemId caused the problem, so some kind of binary search is required (I'm particularly interested in the text body and not the HTML body). Also this doesn't seem the right way of doing it.</p>
  
  <p>I found <a href="http://msdn.microsoft.com/en-us/library/exchange/hh135142%28v=exchg.140%29.aspx" rel="nofollow">this article</a> that uses the ExchangeServiceBinding class and its ExportItems method, but this way I can't control what email properties are returned, and the result is not an email object, but an object that contains the email as some kind of serialized data.</p>
  
  <p>What is the correct way of exporting multiple email messages using the EWS Managed API?</p>