共用方式為


EmailMailbox.MarkMessageReadAsync(String, Boolean) 方法

定義

以非同步方式將電子郵件訊息標示為已讀取或未讀取。

public:
 virtual IAsyncAction ^ MarkMessageReadAsync(Platform::String ^ messageId, bool isRead) = MarkMessageReadAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction MarkMessageReadAsync(winrt::hstring const& messageId, bool const& isRead);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction MarkMessageReadAsync(string messageId, bool isRead);
function markMessageReadAsync(messageId, isRead)
Public Function MarkMessageReadAsync (messageId As String, isRead As Boolean) As IAsyncAction

參數

messageId
String

Platform::String

winrt::hstring

要標記之訊息的識別碼。

isRead
Boolean

bool

True 是表示 將訊息標示為已讀取,false 則會將其標示為未讀取。

傳回

非同步動作,表示作業已完成。

屬性

Windows 需求

應用程式功能
email emailSystem

適用於