IGraphClientAsync.CreateMessageAsync
Contents
[
Hide
]CreateMessageAsync(string, MapiMessage, CancellationToken)
Asynchronously creates a message in the specified folder.
public Task<MapiMessage> CreateMessageAsync(string folderId, MapiMessage message,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| folderId | String | The ID of the folder where the message will be created. |
| message | MapiMessage | The MapiMessage to create. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous operation. The task result contains the created MapiMessage.
See Also
- class MapiMessage
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email
CreateMessageAsync(string, MailMessage, CancellationToken)
Asynchronously creates a mail message in the specified folder.
public Task<MailMessage> CreateMessageAsync(string folderId, MailMessage message,
CancellationToken cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| folderId | String | The ID of the folder where the mail message will be created. |
| message | MailMessage | The MailMessage to create. |
| cancellationToken | CancellationToken | A cancellation token to observe while waiting for the task to complete. |
Return Value
A task that represents the asynchronous operation. The task result contains the created MailMessage.
See Also
- class MailMessage
- interface IGraphClientAsync
- namespace Aspose.Email.Clients.Graph
- assembly Aspose.Email