CopyWithWellKnownFolderName method

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

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

Copies this folder into the specified folder. Calling this method results in a call to EWS. The name of the folder in which to copy this folder.

Implementation

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

/// <summary>
/// Copies this folder into the specified folder. Calling this method results in a call to EWS.
/// </summary>
/// <param name="destinationFolderName">The name of the folder in which to copy this folder.</param>
/// <returns>A Folder representing the copy of this folder.</returns>
Future<Folder?> CopyWithWellKnownFolderName(
  enumerations.WellKnownFolderName destinationFolderName,
) {
  return Copy(FolderId.fromWellKnownFolder(destinationFolderName));
}