Udostępnij za pośrednictwem


EmailMailbox.DeleteMessageAsync(String) Method

Definition

Asynchronously deletes an email message from the mailbox.

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

Parameters

messageId
String

Platform::String

winrt::hstring

The ID of the email message to delete.

Returns

An async action indicating that the operation has completed.

Attributes

Windows requirements

App capabilities
email emailSystem

Applies to