/// <summary>
 /// Binds to an existing e-mail message and loads the specified set of properties.
 /// Calling this method results in a call to EWS.
 /// </summary>
 /// <param name="service">The service to use to bind to the e-mail message.</param>
 /// <param name="id">The Id of the e-mail message to bind to.</param>
 /// <param name="propertySet">The set of properties to load.</param>
 /// <returns>An EmailMessage instance representing the e-mail message corresponding to the specified Id.</returns>
 public static new Task <EmailMessage> BindAsync(
     ExchangeService service,
     ItemId id,
     PropertySet propertySet)
 {
     return(service.BindToItemAsync <EmailMessage>(id, propertySet));
 }
Exemple #2
0
 /// <summary>
 /// Binds to an existing item, whatever its actual type is, and loads the specified set of properties.
 /// Calling this method results in a call to EWS.
 /// </summary>
 /// <param name="service">The service to use to bind to the item.</param>
 /// <param name="id">The Id of the item to bind to.</param>
 /// <param name="propertySet">The set of properties to load.</param>
 /// <returns>An Item instance representing the item corresponding to the specified Id.</returns>
 public static Task <Item> BindAsync(
     ExchangeService service,
     ItemId id,
     PropertySet propertySet)
 {
     return(service.BindToItemAsync <Item>(id, propertySet));
 }