 | ImapMoveByUIDAsync(Int64, String, CancellationToken) Method |
Moves the specified email message 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<long?> MoveByUIDAsync(
long uid,
string destinationFolder,
CancellationToken cancel = default
)
Public Function MoveByUIDAsync (
uid As Long,
destinationFolder As String,
Optional cancel As CancellationToken = Nothing
) As Task(Of Long?)
public:
Task<Nullable<long long>>^ MoveByUIDAsync(
long long uid,
String^ destinationFolder,
CancellationToken cancel = CancellationToken()
)
member MoveByUIDAsync :
uid : int64 *
destinationFolder : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<Nullable<int64>> Parameters
- uid Int64
- Unique-id of the message.
- destinationFolder String
- Destination folder (mailbox).
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskNullableInt64Unique-id of the copied message if the server supports
UniqueIdPlus, null otherwise.
Remarks
IMAP servers may differ in the separator character used in mailbox folder hierarchy paths.
Common separator chars are '.' and '/'. For example: "Inbox/Folder" or "Inbox.Folder".
See Also