 | ImapMoveByNumberAsync(ListInt64, FolderInfo, CancellationToken) Method |
Moves the specified email messages to the specified destination folder (mailbox). Uses copy and delete, if
Move is unavailable.
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<List<long>> MoveByNumberAsync(
List<long> messageNumbers,
FolderInfo destinationFolder,
CancellationToken cancel = default
)
Public Function MoveByNumberAsync (
messageNumbers As List(Of Long),
destinationFolder As FolderInfo,
Optional cancel As CancellationToken = Nothing
) As Task(Of List(Of Long))
public:
Task<List<long long>^>^ MoveByNumberAsync(
List<long long>^ messageNumbers,
FolderInfo^ destinationFolder,
CancellationToken cancel = CancellationToken()
)
member MoveByNumberAsync :
messageNumbers : List<int64> *
destinationFolder : FolderInfo *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<List<int64>> Parameters
- messageNumbers ListInt64
- 1 based message numbers.
- destinationFolder FolderInfo
- Destination folder (mailbox).
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskListInt64Unique-ids of the copied messages if the server supports
UniqueIdPlus, empty otherwise.
See Also