CopyItemsInConversation method
Copies 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 copied. If contextFolderId
is null, items across the entire mailbox are copied.
The Id of the destination folder.
Implementation
Future<void> CopyItemsInConversation(
FolderId? contextFolderId,
FolderId destinationFolderId,
) async {
// ExchangeService.CopyItemsInConversations
EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");
(await _ApplyConversationOneTimeAction(
ConversationActionType.Copy,
[MapEntry(Id!, GlobalLastDeliveryTime)],
contextFolderId,
destinationFolderId,
null,
null,
null,
null,
null,
null,
ServiceErrorHandling.ReturnErrors,
))[0].ThrowIfNecessary();
}