InternalBindToItems method

Future<ServiceResponseCollection<GetItemResponse>> InternalBindToItems(
  1. Iterable<ItemId?> itemIds,
  2. PropertySet propertySet,
  3. String? anchorMailbox,
  4. ServiceErrorHandling errorHandling,
)
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 Type of error handling to perform.

Implementation

Future<ServiceResponseCollection<GetItemResponse>> InternalBindToItems(
    Iterable<ItemId?> itemIds,
    PropertySet propertySet,
    String? anchorMailbox,
    ServiceErrorHandling errorHandling) {
  GetItemRequest request = new GetItemRequest(this, errorHandling);

  request.ItemIds.AddRangeItemIds(itemIds);
  request.PropertySet = propertySet;
  request.AnchorMailbox = anchorMailbox;

  return request.Execute();
}