Export (0) Print
Expand All

ExchangeService.MoveItems method (IEnumerable<ItemId>, FolderId, Boolean)

EWS Managed API

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

This method was introduced in the Exchange Web Services (EWS) Managed API 1.2.

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

public ServiceResponseCollection<MoveCopyItemResponse> MoveItems(
	IEnumerable<ItemId> itemIds,
	FolderId destinationFolderId,
	bool returnNewItemIds


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

The IDs of the items to be moved.

Type: Microsoft.Exchange.WebServices.Data.FolderId

The ID of the folder to which the specified items are to be moved.

Type: System.Boolean

true to return new item identifiers for the moved items; otherwise, false to return the original item identifiers.

Return value

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

Calling this method results in a call to Exchange Web Service (EWS).

© 2014 Microsoft