 | ImapUploadMessageAsync(Byte, CancellationToken) Method |
Uploads specified email message to the current folder (mailbox). Uploaded message has
Seen set.
Internal date of the resulting message is set to the current date and time.
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<long?> UploadMessageAsync(
byte[] eml,
CancellationToken cancel = default
)
Public Function UploadMessageAsync (
eml As Byte(),
Optional cancel As CancellationToken = Nothing
) As Task(Of Long?)
public:
Task<Nullable<long long>>^ UploadMessageAsync(
array<unsigned char>^ eml,
CancellationToken cancel = CancellationToken()
)
member UploadMessageAsync :
eml : byte[] *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<Nullable<int64>> Parameters
- eml Byte
- Message to upload.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskNullableInt64Unique-id of the uploaded message (
Null if server does not support
UniqueIdPlus).
See Also