ExchangeService.MoveItems 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
MoveItems(IEnumerable<ItemId>, FolderId) |
Moves multiple items in a single call to Exchange Web Services (EWS). |
MoveItems(IEnumerable<ItemId>, FolderId, Boolean) |
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. |
MoveItems(IEnumerable<ItemId>, FolderId)
Moves multiple items in a single call to Exchange Web Services (EWS).
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::MoveCopyItemResponse ^> ^ MoveItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::ItemId ^> ^ itemIds, Microsoft::Exchange::WebServices::Data::FolderId ^ destinationFolderId);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.MoveCopyItemResponse> MoveItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.ItemId> itemIds, Microsoft.Exchange.WebServices.Data.FolderId destinationFolderId);
Public Function MoveItems (itemIds As IEnumerable(Of ItemId), destinationFolderId As FolderId) As ServiceResponseCollection(Of MoveCopyItemResponse)
Parameters
- itemIds
- IEnumerable<ItemId>
The IDs of the items to be moved
- destinationFolderId
- FolderId
The ID of the folder to which the specified items are to be moved.
Returns
A collection of copy results for each of the specified items.
Remarks
Calling this method results in a call to Exchange Web Services (EWS).
Applies to
MoveItems(IEnumerable<ItemId>, FolderId, Boolean)
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.
public:
Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::MoveCopyItemResponse ^> ^ MoveItems(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::ItemId ^> ^ itemIds, Microsoft::Exchange::WebServices::Data::FolderId ^ destinationFolderId, bool returnNewItemIds);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.MoveCopyItemResponse> MoveItems (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.ItemId> itemIds, Microsoft.Exchange.WebServices.Data.FolderId destinationFolderId, bool returnNewItemIds);
Public Function MoveItems (itemIds As IEnumerable(Of ItemId), destinationFolderId As FolderId, returnNewItemIds As Boolean) As ServiceResponseCollection(Of MoveCopyItemResponse)
Parameters
- itemIds
- IEnumerable<ItemId>
The IDs of the items to be moved.
- destinationFolderId
- FolderId
The ID of the folder to which the specified items are to be moved.
- returnNewItemIds
- Boolean
true to return new item identifiers for the moved items; otherwise, false to return the original item identifiers.
Returns
A collection of copy results for each of the specified items.
Remarks
Calling this method results in a call to Exchange Web Service (EWS).