EmailMailbox.TryEmptyFolderAsync(String) Method

Definition

Asynchronously attempt to delete the contents of an email folder.

public:
 virtual IAsyncOperation<EmailMailboxEmptyFolderStatus> ^ TryEmptyFolderAsync(Platform::String ^ folderId) = TryEmptyFolderAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<EmailMailboxEmptyFolderStatus> TryEmptyFolderAsync(winrt::hstring const& folderId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<EmailMailboxEmptyFolderStatus> TryEmptyFolderAsync(string folderId);
function tryEmptyFolderAsync(folderId)
Public Function TryEmptyFolderAsync (folderId As String) As IAsyncOperation(Of EmailMailboxEmptyFolderStatus)

Parameters

folderId
String

Platform::String

winrt::hstring

The Id of the folder to empty.

Returns

An async operation with an EmailMailboxEmptyFolderStatus value representing the status of the delete operation.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)
App capabilities
email emailSystem

Applies to