Ews.StoreMessageAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9048)
StoreMessageAsync(EwsFolderId, MailMessage, Object)
Begins asynchronous StoreMessage operation. Stores a mail message to an exchange folder.
Declaration
public Task<EwsItemId> StoreMessageAsync(EwsFolderId folderId, MailMessage message, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsFolderId | folderId | ID of a folder where to store the message. |
MailMessage | message | Message to store. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<EwsItemId> | EwsItemId of the stored message. |
StoreMessageAsync(EwsFolderId, MimeMessage, Object)
Begins asynchronous StoreMessage operation. Stores a MIME message to an exchange folder.
Declaration
public Task<EwsItemId> StoreMessageAsync(EwsFolderId folderId, MimeMessage message, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsFolderId | folderId | ID of a folder where to store the message. |
MimeMessage | message | Message to store. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<EwsItemId> | EwsItemId of the stored message. |