InternalMoveItems method

Future<ServiceResponseCollection<MoveCopyItemResponse>> InternalMoveItems(
  1. Iterable<ItemId?> itemIds,
  2. FolderId? destinationFolderId,
  3. bool? returnNewItemIds,
  4. ServiceErrorHandling errorHandling,
)
Moves multiple items in a single call to EWS. The Ids of the items to move. The Id of the folder to move the items to. Flag indicating whether service should return new ItemIds or not. What type of error handling should be performed.

Implementation

Future<ServiceResponseCollection<MoveCopyItemResponse>> InternalMoveItems(
  Iterable<ItemId?> itemIds,
  FolderId? destinationFolderId,
  bool? returnNewItemIds,
  ServiceErrorHandling errorHandling,
) {
  MoveItemRequest request = MoveItemRequest(this, errorHandling);

  request.ItemIds.AddRangeItemIds(itemIds);
  request.DestinationFolderId = destinationFolderId;
  request.ReturnNewItemIds = returnNewItemIds;

  return request.Execute();
}