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

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

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

public ServiceResponseCollection<UpdateItemResponse> UpdateItems(
	IEnumerable<Item> items,
	FolderId savedItemsDestinationFolderId,
	ConflictResolutionMode conflictResolution,
	Nullable<MessageDisposition> messageDisposition,
	Nullable<SendInvitationsOrCancellationsMode> sendInvitationsOrCancellationsMode


Type: System.Collections.Generic.IEnumerable<Item>

The items to be updated.

Type: Microsoft.Exchange.WebServices.Data.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.

Type: Microsoft.Exchange.WebServices.Data.ConflictResolutionMode

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

Type: System.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.

Type: System.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.

Return value

Type: Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<UpdateItemResponse>
A collection of update results for each of the specified items.

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

© 2014 Microsoft