Asynchronously uploads a mail message inside the specified data stream to the specified folder, assigns the specified date and flags to this message.
public Task<string> UploadRawMessageAsync(
string folder,
Stream input,
ImapMessageFlags flags,
MailDateTime internalDate,
ExtendedAsyncCompletedEventHandler<string> callback,
object userState = null
)
Public Function UploadRawMessageAsync( _
ByVal folder As String, _
ByVal input As Stream, _
ByVal flags As ImapMessageFlags, _
ByVal internalDate As MailDateTime, _
ByVal callback As ExtendedAsyncCompletedEventHandler(Of String), _
ByVal userState As Object = null _
) As Task(Of String)
public:
Task<String> UploadRawMessageAsync(
String^ folder,
Stream^ input,
ImapMessageFlags flags,
MailDateTime^ internalDate,
ExtendedAsyncCompletedEventHandler<String>^ callback,
Object^ userState = null
);
Parameters
- folder
- The full name of the folder to upload the message to.
- input
- The input stream. This stream must contain data in MIME format.
- flags
- The message flags.
- internalDate
- The IMAP message date/time.
- callback
- An optional asynchronous callback to be invoked when this operation completes. This parameter can be null.
- userState
- A user-provided object that identifies this particular asynchronous operation.
Return Value
An object that references the asynchronous operation.