共用方式為


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

要空白之資料夾的 識別碼

傳回

具有 EmailMailboxEmptyFolderStatus 值的非同步作業,代表刪除作業的狀態。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)
應用程式功能
email emailSystem

適用於