Share via


EmailFolder.TryMoveAsync Method

Definition

Overloads

TryMoveAsync(EmailFolder)

Asynchronously attempts to move this folder to the specified folder.

TryMoveAsync(EmailFolder, String)

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

TryMoveAsync(EmailFolder)

Asynchronously attempts to move this folder to the specified folder.

public:
 virtual IAsyncOperation<bool> ^ TryMoveAsync(EmailFolder ^ newParentFolder) = TryMoveAsync;
/// [Windows.Foundation.Metadata.Overload("TryMoveAsync")]
IAsyncOperation<bool> TryMoveAsync(EmailFolder const& newParentFolder);
[Windows.Foundation.Metadata.Overload("TryMoveAsync")]
public IAsyncOperation<bool> TryMoveAsync(EmailFolder newParentFolder);
function tryMoveAsync(newParentFolder)
Public Function TryMoveAsync (newParentFolder As EmailFolder) As IAsyncOperation(Of Boolean)

Parameters

newParentFolder
EmailFolder

The new location for this folder.

Returns

A Boolean value indicating if the move was successful.

Attributes

Windows requirements

App capabilities
email emailSystem

See also

Applies to

TryMoveAsync(EmailFolder, String)

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

public:
 virtual IAsyncOperation<bool> ^ TryMoveAsync(EmailFolder ^ newParentFolder, Platform::String ^ newFolderName) = TryMoveAsync;
/// [Windows.Foundation.Metadata.Overload("TryMoveWithNewNameAsync")]
IAsyncOperation<bool> TryMoveAsync(EmailFolder const& newParentFolder, winrt::hstring const& newFolderName);
[Windows.Foundation.Metadata.Overload("TryMoveWithNewNameAsync")]
public IAsyncOperation<bool> TryMoveAsync(EmailFolder newParentFolder, string newFolderName);
function tryMoveAsync(newParentFolder, newFolderName)
Public Function TryMoveAsync (newParentFolder As EmailFolder, newFolderName As String) As IAsyncOperation(Of Boolean)

Parameters

newParentFolder
EmailFolder

The new location for this folder.

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