Move method

Future<Item?> Move(
  1. FolderId destinationFolderId
)
Moves this item to a the specified folder. Calling this method results in a call to EWS. The Id of the folder to which to move this item.

Implementation

Future<Item?> Move(FolderId destinationFolderId) {
  ThrowIfThisIsNew();
  ThrowIfThisIsAttachment();

  EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");

  return Service.MoveItem(Id, destinationFolderId);
}