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

要移动的电子邮件的 ID。

newParentFolderId
String

Platform::String

winrt::hstring

电子邮件应驻留的新文件夹的 ID。

返回

一个布尔值,指示移动是否成功。

属性

Windows 要求

应用功能
email emailSystem

适用于