Dela via


EmailMailbox.TryDeleteFolderAsync(String) Method

Definition

Asynchronously attempts to delete an email folder.

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

Parameters

folderId
String

Platform::String

winrt::hstring

The Id of the folder to delete.

Returns

An async operation with an EmailMailboxDeleteFolderStatus 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