InternalDeleteItems method

Future<ServiceResponseCollection<ServiceResponse>> InternalDeleteItems(
  1. Iterable<ItemId?> itemIds,
  2. DeleteMode deleteMode,
  3. SendCancellationsMode? sendCancellationsMode,
  4. AffectedTaskOccurrence? affectedTaskOccurrences,
  5. ServiceErrorHandling errorHandling,
  6. bool suppressReadReceipts,
)
Deletes multiple items in a single call to EWS. The Ids of the items to delete. The deletion mode. Indicates whether cancellation messages should be sent. Required if any of the item Ids represents an Appointment. Indicates which instance of a recurring task should be deleted. Required if any of the item Ids represents a Task. Type of error handling to perform. Whether to suppress read receipts

Implementation

Future<ServiceResponseCollection<ServiceResponse>> InternalDeleteItems(
    Iterable<ItemId?> itemIds,
    DeleteMode deleteMode,
    SendCancellationsMode? sendCancellationsMode,
    AffectedTaskOccurrence? affectedTaskOccurrences,
    ServiceErrorHandling errorHandling,
    bool suppressReadReceipts) {
  DeleteItemRequest request = new DeleteItemRequest(this, errorHandling);

  request.ItemIds.AddRangeItemIds(itemIds);
  request.DeleteMode = deleteMode;
  request.SendCancellationsMode = sendCancellationsMode;
  request.AffectedTaskOccurrences = affectedTaskOccurrences;
  request.SuppressReadReceipts = suppressReadReceipts;

  return request.Execute();
}