BindToGroupItems method

Future<ServiceResponseCollection<GetItemResponse>> BindToGroupItems(
  1. Iterable<ItemId> itemIds,
  2. PropertySet propertySet,
  3. String anchorMailbox
)
Binds to multiple items in a single call to EWS. The Ids of the items to bind to. The set of properties to load. The SmtpAddress of mailbox that hosts all items we need to bind to

Implementation

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

  return InternalBindToItems(
    itemIds,
    propertySet,
    anchorMailbox,
    ServiceErrorHandling.ReturnErrors,
  );
}