Share via


EmailMailbox.ChangeMessageFlagStateAsync(String, EmailFlagState) Method

Definition

Asynchronously changes the flag state of an email message.

public:
 virtual IAsyncAction ^ ChangeMessageFlagStateAsync(Platform::String ^ messageId, EmailFlagState flagState) = ChangeMessageFlagStateAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction ChangeMessageFlagStateAsync(winrt::hstring const& messageId, EmailFlagState const& flagState);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction ChangeMessageFlagStateAsync(string messageId, EmailFlagState flagState);
function changeMessageFlagStateAsync(messageId, flagState)
Public Function ChangeMessageFlagStateAsync (messageId As String, flagState As EmailFlagState) As IAsyncAction

Parameters

messageId
String

Platform::String

winrt::hstring

The ID of the email message to change.

flagState
EmailFlagState

The new email flag state.

Returns

An async action indicating that the operation has completed.

Attributes

Windows requirements

App capabilities
email emailSystem

Applies to