BindToItems method

Binds to multiple items in a single call to EWS. The Ids of the items to bind to. The set of properties to load.

Implementation

Future<ServiceResponseCollection<GetItemResponse>> BindToItems(
    Iterable<ItemId> itemIds, PropertySet propertySet) {
  EwsUtilities.ValidateParamCollection(itemIds, "itemIds");
  EwsUtilities.ValidateParam(propertySet, "propertySet");

  return this.InternalBindToItems(
      itemIds,
      propertySet,
      null,
      /* anchorMailbox */
      ServiceErrorHandling.ReturnErrors);
}