MoveItemsInConversation method

Future<void> MoveItemsInConversation(
  1. FolderId? contextFolderId,
  2. FolderId destinationFolderId
)
Moves items in the specified conversation to a specific folder. Calling this method results in a call to EWS. The Id of the folder items must belong to in order to be moved. If contextFolderId is null, items across the entire mailbox are moved. The Id of the destination folder.

Implementation

Future<void> MoveItemsInConversation(
  FolderId? contextFolderId,
  FolderId destinationFolderId,
) async {
  // ExchangeService.MoveItemsInConversations
  EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");
  (await _ApplyConversationOneTimeAction(
    ConversationActionType.Move,
    [MapEntry(Id!, GlobalLastDeliveryTime)],
    contextFolderId,
    destinationFolderId,
    null,
    null,
    null,
    null,
    null,
    null,
    ServiceErrorHandling.ReturnErrors,
  ))[0].ThrowIfNecessary();
}