InternalCopyItems method

Future<ServiceResponseCollection<MoveCopyItemResponse>> InternalCopyItems(
  1. Iterable<ItemId?> itemIds,
  2. FolderId? destinationFolderId,
  3. bool? returnNewItemIds,
  4. ServiceErrorHandling errorHandling,
)
Copies multiple items in a single call to EWS. The Ids of the items to copy. The Id of the folder to copy 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>> InternalCopyItems(
  Iterable<ItemId?> itemIds,
  FolderId? destinationFolderId,
  bool? returnNewItemIds,
  ServiceErrorHandling errorHandling,
) {
  CopyItemRequest request = CopyItemRequest(this, errorHandling);
  request.ItemIds.AddRangeItemIds(itemIds);
  request.DestinationFolderId = destinationFolderId;
  request.ReturnNewItemIds = returnNewItemIds;

  return request.Execute();
}