ExchangeService.DeleteItems method (IEnumerable<ItemId>, DeleteMode, Nullable<SendCancellationsMode>, Nullable<AffectedTaskOccurrence>)

EWS Managed API

Deletes multiple items in a single call to Exchange Web Services (EWS).

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public ServiceResponseCollection<ServiceResponse> DeleteItems(
	IEnumerable<ItemId> itemIds,
	DeleteMode deleteMode,
	Nullable<SendCancellationsMode> sendCancellationsMode,
	Nullable<AffectedTaskOccurrence> affectedTaskOccurrences
)

Parameters

itemIds
Type: System.Collections.Generic.IEnumerable<ItemId>

The IDs of the items to be deleted.

deleteMode
Type: Microsoft.Exchange.WebServices.Data.DeleteMode

One of the enumeration values that specifies the deletion mode.

sendCancellationsMode
Type: System.Nullable<SendCancellationsMode>

One of the enumeration values that specifies whether cancellation messages should be sent. This parameter is required if any of the item IDs represents an Appointment instance.

affectedTaskOccurrences
Type: System.Nullable<AffectedTaskOccurrence>

One of the enumeration values that specifies which instance of a recurring task should be deleted. This parameter is required if any of the item IDs represents a Task instance.

Return value

Type: Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<ServiceResponse>
A collection of deletion results for each of the specified item IDs.
Show:
© 2014 Microsoft