EmailMailbox.TryEmptyFolderAsync(String) 方法

定义

异步尝试删除电子邮件文件夹的内容。

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)

参数

folderId
String

Platform::String

winrt::hstring

要为空的文件夹的 ID

返回

具有表示删除操作状态的 EmailMailboxEmptyFolderStatus 值的异步操作。

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
应用功能
email emailSystem

适用于