MoveWithWellKnownFolderName method

Future<Item?> MoveWithWellKnownFolderName(
  1. WellKnownFolderName destinationFolderName
)

/ EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");

Moves this item to a the specified folder. Calling this method results in a call to EWS. The name of the folder to which to move this item.

Implementation

//
//            return this.Service.MoveItem(this.Id, destinationFolderId);
//        }

/// <summary>
/// Moves this item to a the specified folder. Calling this method results in a call to EWS.
/// <para>
/// Move returns null if the move operation is across two mailboxes or between a mailbox and a
/// public folder.
/// </para>
/// </summary>
/// <param name="destinationFolderName">The name of the folder to which to move this item.</param>
/// <returns>The moved copy of this item.</returns>
Future<Item?> MoveWithWellKnownFolderName(
  WellKnownFolderName destinationFolderName,
) {
  return Move(FolderId.fromWellKnownFolder(destinationFolderName));
}