Edit

Share via


ExchangeService.UpdateItems Method

Definition

Overloads

UpdateItems(IEnumerable<Item>, FolderId, ConflictResolutionMode, Nullable<MessageDisposition>, Nullable<SendInvitationsOrCancellationsMode>, Boolean)

Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments.

UpdateItems(IEnumerable<Item>, FolderId, ConflictResolutionMode, Nullable<MessageDisposition>, Nullable<SendInvitationsOrCancellationsMode>)

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

UpdateItems(IEnumerable<Item>, FolderId, ConflictResolutionMode, Nullable<MessageDisposition>, Nullable<SendInvitationsOrCancellationsMode>, Boolean)

Updates multiple items in a single EWS call. UpdateItems does not support items that have unsaved attachments.

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::UpdateItemResponse ^> ^ UpdateItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::Item ^> ^ items, Microsoft::Exchange::WebServices::Data::FolderId ^ savedItemsDestinationFolderId, Microsoft::Exchange::WebServices::Data::ConflictResolutionMode conflictResolution, Nullable<Microsoft::Exchange::WebServices::Data::MessageDisposition> messageDisposition, Nullable<Microsoft::Exchange::WebServices::Data::SendInvitationsOrCancellationsMode> sendInvitationsOrCancellationsMode, bool suppressReadReceipts);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.UpdateItemResponse> UpdateItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.Item> items, Microsoft.Exchange.WebServices.Data.FolderId savedItemsDestinationFolderId, Microsoft.Exchange.WebServices.Data.ConflictResolutionMode conflictResolution, Nullable<Microsoft.Exchange.WebServices.Data.MessageDisposition> messageDisposition, Nullable<Microsoft.Exchange.WebServices.Data.SendInvitationsOrCancellationsMode> sendInvitationsOrCancellationsMode, bool suppressReadReceipts);
Public Function UpdateItems (items As IEnumerable(Of Item), savedItemsDestinationFolderId As FolderId, conflictResolution As ConflictResolutionMode, messageDisposition As Nullable(Of MessageDisposition), sendInvitationsOrCancellationsMode As Nullable(Of SendInvitationsOrCancellationsMode), suppressReadReceipts As Boolean) As ServiceResponseCollection(Of UpdateItemResponse)

Parameters

items
IEnumerable<Item>

The items to be updated.

savedItemsDestinationFolderId
FolderId

The folder in which sent messages, meeting invitations, or cancellations are to be saved. If this parameter is a null reference (Nothing in Visual Basic), the messages, meeting invitations, or cancellations are saved in the Sent Items folder.

conflictResolution
ConflictResolutionMode

One of the enumeration values that specifies how conflict resolutions should be handled.

messageDisposition
Nullable<MessageDisposition>

One of the enumeration values that specifies the disposition mode for EmailMessage objects. This parameter is required if items contain at least one EmailMessage instance.

sendInvitationsOrCancellationsMode
Nullable<SendInvitationsOrCancellationsMode>

One of the enumeration values that specifies whether and how invitations and/or cancellations should be sent for Appointment objects. This parameter is required for items that contain at least one Appointment instance.

suppressReadReceipts
Boolean

true if read receipts should not be sent for any items being updated that have requested a read receipt; otherwise, false.

Returns

A collection of update results for each of the specified items.

Remarks

The UpdateItems(IEnumerable<Item>, FolderId, ConflictResolutionMode, Nullable<MessageDisposition>, Nullable<SendInvitationsOrCancellationsMode>, Boolean) method does not support items that have unsaved attachments.

Applies to

UpdateItems(IEnumerable<Item>, FolderId, ConflictResolutionMode, Nullable<MessageDisposition>, Nullable<SendInvitationsOrCancellationsMode>)

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

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::UpdateItemResponse ^> ^ UpdateItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::Item ^> ^ items, Microsoft::Exchange::WebServices::Data::FolderId ^ savedItemsDestinationFolderId, Microsoft::Exchange::WebServices::Data::ConflictResolutionMode conflictResolution, Nullable<Microsoft::Exchange::WebServices::Data::MessageDisposition> messageDisposition, Nullable<Microsoft::Exchange::WebServices::Data::SendInvitationsOrCancellationsMode> sendInvitationsOrCancellationsMode);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.UpdateItemResponse> UpdateItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.Item> items, Microsoft.Exchange.WebServices.Data.FolderId savedItemsDestinationFolderId, Microsoft.Exchange.WebServices.Data.ConflictResolutionMode conflictResolution, Nullable<Microsoft.Exchange.WebServices.Data.MessageDisposition> messageDisposition, Nullable<Microsoft.Exchange.WebServices.Data.SendInvitationsOrCancellationsMode> sendInvitationsOrCancellationsMode);
Public Function UpdateItems (items As IEnumerable(Of Item), savedItemsDestinationFolderId As FolderId, conflictResolution As ConflictResolutionMode, messageDisposition As Nullable(Of MessageDisposition), sendInvitationsOrCancellationsMode As Nullable(Of SendInvitationsOrCancellationsMode)) As ServiceResponseCollection(Of UpdateItemResponse)

Parameters

items
IEnumerable<Item>

The items to be updated.

savedItemsDestinationFolderId
FolderId

The folder in which sent messages, meeting invitations, or cancellations are to be saved. If this parameter is a null reference (Nothing in Visual Basic), the messages, meeting invitations, or cancellations are saved in the Sent Items folder.

conflictResolution
ConflictResolutionMode

One of the enumeration values that specifies how conflict resolutions should be handled.

messageDisposition
Nullable<MessageDisposition>

One of the enumeration values that specifies the disposition mode for EmailMessage objects. This parameter is required if items contain at least one EmailMessage instance.

sendInvitationsOrCancellationsMode
Nullable<SendInvitationsOrCancellationsMode>

One of the enumeration values that specifies whether and how invitations and/or cancellations should be sent for Appointment objects. This parameter is required for items that contain at least one Appointment instance.

Returns

A collection of update results for each of the specified items.

Remarks

The UpdateItems(IEnumerable<Item>, FolderId, ConflictResolutionMode, Nullable<MessageDisposition>, Nullable<SendInvitationsOrCancellationsMode>) method does not support items that have unsaved attachments.

Applies to