Share via


EmailMailbox.TryCreateFolderAsync(String, String) Method

Definition

Asynchronously attempts to create a new email folder.

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)

Parameters

parentFolderId
String

Platform::String

winrt::hstring

The Id of the parent email folder.

name
String

Platform::String

winrt::hstring

The name for the new folder.

Returns

An async operation with an EmailMailboxCreateFolderResult containing the newly created folder and the status of the create 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