IGraphClientAsync.CreateMessageAsync

CreateMessageAsync(string, MapiMessage, CancellationToken)

Asynchronously creates a message in the specified folder.

public Task<MapiMessage> CreateMessageAsync(string folderId, MapiMessage message, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
folderIdStringThe ID of the folder where the message will be created.
messageMapiMessageThe MapiMessage to create.
cancellationTokenCancellationTokenA 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


CreateMessageAsync(string, MailMessage, CancellationToken)

Asynchronously creates a mail message in the specified folder.

public Task<MailMessage> CreateMessageAsync(string folderId, MailMessage message, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
folderIdStringThe ID of the folder where the mail message will be created.
messageMailMessageThe MailMessage to create.
cancellationTokenCancellationTokenA 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