DeleteItems method

Future<ServiceResponseCollection<ServiceResponse>> DeleteItems(
  1. Iterable<ItemId> itemIds,
  2. DeleteMode deleteMode,
  3. SendCancellationsMode sendCancellationsMode,
  4. AffectedTaskOccurrence affectedTaskOccurrences, [
  5. bool suppressReadReceipt = false,
])
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. 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. Whether to suppress read receipts

Implementation

//ServiceResponseCollection<ServiceResponse> DeleteItems(
//            Iterable<ItemId> itemIds,
//            DeleteMode deleteMode,
//            SendCancellationsMode sendCancellationsMode,
//            AffectedTaskOccurrence affectedTaskOccurrences)
//        {
//            return this.DeleteItems(itemIds, deleteMode, sendCancellationsMode, affectedTaskOccurrences, false);
//        }

/// <summary>
/// Deletes multiple items in a single call to EWS.
/// </summary>
/// <param name="itemIds">The Ids of the items to delete.</param>
/// <param name="deleteMode">The deletion mode.</param>
/// <param name="sendCancellationsMode">Indicates whether cancellation messages should be sent. Required if any of the item Ids represents an Appointment.</param>
/// <param name="affectedTaskOccurrences">Indicates which instance of a recurring task should be deleted. Required if any of the item Ids represents a Task.</param>
/// <returns>A ServiceResponseCollection providing deletion results for each of the specified item Ids.</returns>
/// <param name="suppressReadReceipt">Whether to suppress read receipts</param>
Future<ServiceResponseCollection<ServiceResponse>> DeleteItems(
    Iterable<ItemId> itemIds,
    DeleteMode deleteMode,
    SendCancellationsMode sendCancellationsMode,
    AffectedTaskOccurrence affectedTaskOccurrences,
    [bool suppressReadReceipt = false]) {
  EwsUtilities.ValidateParamCollection(itemIds, "itemIds");

  return this.InternalDeleteItems(
      itemIds,
      deleteMode,
      sendCancellationsMode,
      affectedTaskOccurrences,
      ServiceErrorHandling.ReturnErrors,
      suppressReadReceipt);
}