IGraphClientAsync.MoveMessageAsync

IGraphClientAsync.MoveMessageAsync method

Asynchronously moves a message to a new parent folder.

public Task<MapiMessage> MoveMessageAsync(string newParentId, string itemId, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
newParentIdStringThe ID of the new parent folder.
itemIdStringThe ID of the message to move.
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 moved MapiMessage.

See Also