Share via


EmailMailbox.TryMoveFolderAsync Method

Definition

Overloads

TryMoveFolderAsync(String, String)

Asynchronously attempts to move the specified email folder.

TryMoveFolderAsync(String, String, String)

Asynchronously attempts to move the specified email folder and rename it in the process.

TryMoveFolderAsync(String, String)

Asynchronously attempts to move the specified email folder.

public:
 virtual IAsyncOperation<bool> ^ TryMoveFolderAsync(Platform::String ^ folderId, Platform::String ^ newParentFolderId) = TryMoveFolderAsync;
/// [Windows.Foundation.Metadata.Overload("TryMoveFolderAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryMoveFolderAsync(winrt::hstring const& folderId, winrt::hstring const& newParentFolderId);
[Windows.Foundation.Metadata.Overload("TryMoveFolderAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryMoveFolderAsync(string folderId, string newParentFolderId);
function tryMoveFolderAsync(folderId, newParentFolderId)
Public Function TryMoveFolderAsync (folderId As String, newParentFolderId As String) As IAsyncOperation(Of Boolean)

Parameters

folderId
String

Platform::String

winrt::hstring

The folder to move.

newParentFolderId
String

Platform::String

winrt::hstring

The new parent for the folder specified in the folderId parameter.

Returns

A Boolean value indicating if the move was successful.

Attributes

Windows requirements

App capabilities
email emailSystem

See also

Applies to

TryMoveFolderAsync(String, String, String)

Asynchronously attempts to move the specified email folder and rename it in the process.

public:
 virtual IAsyncOperation<bool> ^ TryMoveFolderAsync(Platform::String ^ folderId, Platform::String ^ newParentFolderId, Platform::String ^ newFolderName) = TryMoveFolderAsync;
/// [Windows.Foundation.Metadata.Overload("TryMoveFolderWithNewNameAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryMoveFolderAsync(winrt::hstring const& folderId, winrt::hstring const& newParentFolderId, winrt::hstring const& newFolderName);
[Windows.Foundation.Metadata.Overload("TryMoveFolderWithNewNameAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryMoveFolderAsync(string folderId, string newParentFolderId, string newFolderName);
function tryMoveFolderAsync(folderId, newParentFolderId, newFolderName)
Public Function TryMoveFolderAsync (folderId As String, newParentFolderId As String, newFolderName As String) As IAsyncOperation(Of Boolean)

Parameters

folderId
String

Platform::String

winrt::hstring

The folder to move.

newParentFolderId
String

Platform::String

winrt::hstring

The new parent for the folder specified in the folderId parameter.

newFolderName
String

Platform::String

winrt::hstring

The name for the folder in the new location.

Returns

A Boolean value indicating if the move was successful.

Attributes

Windows requirements

App capabilities
email emailSystem

See also

Applies to