ImapUploadMessageAsync Method (MailMessage, String, String, String, Boolean, UidPlusResult) |
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> UploadMessageAsync(
MailMessage msg,
string folderName,
string flags,
string dateTimeString,
bool batchMode,
UidPlusResult result
)
Public Function UploadMessageAsync (
msg As MailMessage,
folderName As String,
flags As String,
dateTimeString As String,
batchMode As Boolean,
result As UidPlusResult
) As Task(Of Boolean)
Parameters
- msg
- Type: MailBee.MimeMailMessage
A reference to the MailMessage object representing the message to be uploaded. - folderName
- Type: SystemString
The full name of the folder to upload the message to. - flags
- Type: SystemString
The string containing the message flags (in IMAP4 format) to be assigned to the message, or a null reference (Nothing in Visual Basic) to
set default flags at the discretion of the server. - dateTimeString
- Type: SystemString
The string containing datetime (in IMAP4 format) to be assigned to the INTERNALDATE attribute of the message
(the date of receiving the message by the server), or a null reference to let the server assign its current datetime value. - batchMode
- Type: SystemBoolean
If true and LITERAL+ extension is supported by the server, the message will be
uploaded in a single network operation; otherwise, in two operations. - result
- Type: MailBee.ImapMailUidPlusResult
A reference to the UidPlusResult object to be filled with the outcome
of the upload operation reported by UIDPLUS enabled server (the outcome includes the UID assigned to the uploaded message and the UIDVALIDITY of the folder the message was uploaded to),
or a null reference if the application does not need this information.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation. The value of
TResult parameter is
true if the method succeeds; otherwise,
false.
Exceptions See Also