Copy method

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

Implementation

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

  EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");

  return Service.CopyItem(Id, destinationFolderId);
}