ExchangeService.DeleteItems Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DeleteItems(IEnumerable<ItemId>, DeleteMode, Nullable<SendCancellationsMode>, Nullable<AffectedTaskOccurrence>) |
Deletes multiple items in a single call to Exchange Web Services (EWS). |
DeleteItems(IEnumerable<ItemId>, DeleteMode, Nullable<SendCancellationsMode>, Nullable<AffectedTaskOccurrence>, Boolean) |
Deletes multiple items in a single call to EWS. |
DeleteItems(IEnumerable<ItemId>, DeleteMode, Nullable<SendCancellationsMode>, Nullable<AffectedTaskOccurrence>)
Deletes multiple items in a single call to Exchange Web Services (EWS).
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::ServiceResponse ^> ^ DeleteItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::ItemId ^> ^ itemIds, Microsoft::Exchange::WebServices::Data::DeleteMode deleteMode, Nullable<Microsoft::Exchange::WebServices::Data::SendCancellationsMode> sendCancellationsMode, Nullable<Microsoft::Exchange::WebServices::Data::AffectedTaskOccurrence> affectedTaskOccurrences);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.ServiceResponse> DeleteItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.ItemId> itemIds, Microsoft.Exchange.WebServices.Data.DeleteMode deleteMode, Nullable<Microsoft.Exchange.WebServices.Data.SendCancellationsMode> sendCancellationsMode, Nullable<Microsoft.Exchange.WebServices.Data.AffectedTaskOccurrence> affectedTaskOccurrences);
Parameters
- itemIds
- IEnumerable<ItemId>
The IDs of the items to be deleted.
- deleteMode
- DeleteMode
One of the enumeration values that specifies the deletion mode.
- sendCancellationsMode
- 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
- 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.
Returns
A collection of deletion results for each of the specified item IDs.
Applies to
DeleteItems(IEnumerable<ItemId>, DeleteMode, Nullable<SendCancellationsMode>, Nullable<AffectedTaskOccurrence>, Boolean)
Deletes multiple items in a single call to EWS.
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::ServiceResponse ^> ^ DeleteItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::ItemId ^> ^ itemIds, Microsoft::Exchange::WebServices::Data::DeleteMode deleteMode, Nullable<Microsoft::Exchange::WebServices::Data::SendCancellationsMode> sendCancellationsMode, Nullable<Microsoft::Exchange::WebServices::Data::AffectedTaskOccurrence> affectedTaskOccurrences, bool suppressReadReceipt);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.ServiceResponse> DeleteItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.ItemId> itemIds, Microsoft.Exchange.WebServices.Data.DeleteMode deleteMode, Nullable<Microsoft.Exchange.WebServices.Data.SendCancellationsMode> sendCancellationsMode, Nullable<Microsoft.Exchange.WebServices.Data.AffectedTaskOccurrence> affectedTaskOccurrences, bool suppressReadReceipt);
Parameters
- itemIds
- IEnumerable<ItemId>
The IDs of the items to be deleted.
- deleteMode
- DeleteMode
One of the enumeration values that specifies the deletion mode.
- sendCancellationsMode
- 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
- 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.
- suppressReadReceipt
- Boolean
true if read receipts should not be sent for any items being deleted that have requested a read receipt; otherwise, false.
Returns
A collection of deletion results for each of the specified item IDs.