Share via


EmailMailbox.TryMoveMessageAsync(String, String) Method

Definition

Asynchronously attempts to move the specified email message.

public:
 virtual IAsyncOperation<bool> ^ TryMoveMessageAsync(Platform::String ^ messageId, Platform::String ^ newParentFolderId) = TryMoveMessageAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryMoveMessageAsync(winrt::hstring const& messageId, winrt::hstring const& newParentFolderId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryMoveMessageAsync(string messageId, string newParentFolderId);
function tryMoveMessageAsync(messageId, newParentFolderId)
Public Function TryMoveMessageAsync (messageId As String, newParentFolderId As String) As IAsyncOperation(Of Boolean)

Parameters

messageId
String

Platform::String

winrt::hstring

The ID of the email message to move.

newParentFolderId
String

Platform::String

winrt::hstring

The ID of the new folder where the email message should reside.

Returns

A Boolean value indicating if the move was successful.

Attributes

Windows requirements

App capabilities
email emailSystem

Applies to