DeleteItems method
Future<ServiceResponseCollection<ServiceResponse> >
DeleteItems(
- Iterable<
ItemId> itemIds, - DeleteMode deleteMode,
- SendCancellationsMode sendCancellationsMode,
- AffectedTaskOccurrence affectedTaskOccurrences, [
- bool suppressReadReceipt = false,
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);
}