MoveWithWellKnownFolderName method

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

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

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

Implementation

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

/// <summary>
/// Moves this folder to the specified folder. Calling this method results in a call to EWS.
/// </summary>
/// <param name="destinationFolderName">The name of the folder in which to move this folder.</param>
/// <returns>A new folder representing this folder in its new location. After Move completes, this folder does not exist anymore.</returns>
Future<Folder?> MoveWithWellKnownFolderName(
  enumerations.WellKnownFolderName destinationFolderName,
) {
  return Move(FolderId.fromWellKnownFolder(destinationFolderName));
}