共用方式為


EmailMailbox.TryMoveMessageAsync(String, String) 方法

定義

以非同步方式嘗試移動指定的電子郵件訊息。

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)

參數

messageId
String

Platform::String

winrt::hstring

要移動的電子郵件訊息識別碼。

newParentFolderId
String

Platform::String

winrt::hstring

電子郵件訊息所在之新資料夾的識別碼。

傳回

布林值,指出移動是否成功。

屬性

Windows 需求

應用程式功能
email emailSystem

適用於