共用方式為


EmailMailbox.TryCreateFolderAsync(String, String) 方法

定義

以非同步方式嘗試建立新的電子郵件資料夾。

public:
 virtual IAsyncOperation<EmailMailboxCreateFolderResult ^> ^ TryCreateFolderAsync(Platform::String ^ parentFolderId, Platform::String ^ name) = TryCreateFolderAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<EmailMailboxCreateFolderResult> TryCreateFolderAsync(winrt::hstring const& parentFolderId, winrt::hstring const& name);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<EmailMailboxCreateFolderResult> TryCreateFolderAsync(string parentFolderId, string name);
function tryCreateFolderAsync(parentFolderId, name)
Public Function TryCreateFolderAsync (parentFolderId As String, name As String) As IAsyncOperation(Of EmailMailboxCreateFolderResult)

參數

parentFolderId
String

Platform::String

winrt::hstring

父電子郵件資料夾的 識別碼

name
String

Platform::String

winrt::hstring

新資料夾的名稱。

傳回

具有 EmailMailboxCreateFolderResult 的非同步作業,其中包含新建立的資料夾和建立作業的狀態。

屬性

Windows 需求

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

適用於