/** * Binds to an existing e-mail message and loads its first class * property.Calling this method results in a call to EWS. * * @param service the service * @param id the id * @return An EmailMessage instance representing the e-mail message * corresponding to the specified Id * @throws Exception the exception */ public static EmailMessage bind(ExchangeService service, ItemId id) throws Exception { return EmailMessage.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing e-mail message and loads its first class * property.Calling this method results in a call to EWS. * * @param service the service * @param id the id * @return An EmailMessage instance representing the e-mail message * corresponding to the specified Id * @throws Exception the exception */ public static EmailMessage bind(ExchangeService service, ItemId id) throws Exception { return EmailMessage.bind(service, id, PropertySet .getFirstClassProperties()); }
id = item.getId(); message = new EmailMessage(mService); message.bind(mService, id); } catch (ServiceLocalException e) { e.printStackTrace();