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

父电子邮件文件夹的 ID

name
String

Platform::String

winrt::hstring

新文件夹的名称。

返回

包含新创建的文件夹和创建操作状态的 EmailMailboxCreateFolderResult 的异步操作。

属性

Windows 要求

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

适用于