ImapClient.MoveFolderAsync

MoveFolderAsync(string, string)

Moves specified folder and its subfolders to new location.

public Task MoveFolderAsync(string newParentFolder, string folderName)
ParameterTypeDescription
newParentFolderStringNew location for moved folder
folderNameStringFolder to move

Return Value

Task object, with delegate for this operation

See Also


MoveFolderAsync(IConnection, string, string)

Moves specified folder and its subfolders to new location.

public Task MoveFolderAsync(IConnection connection, string newParentFolder, string folderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
newParentFolderStringNew location for moved folder
folderNameStringFolder to move

Return Value

Task object, with delegate for this operation

See Also


MoveFolderAsync(string, string, CancellationToken)

Moves specified folder and its subfolders to new location.

public Task MoveFolderAsync(string newParentFolder, string folderName, CancellationToken token)
ParameterTypeDescription
newParentFolderStringNew location for moved folder
folderNameStringFolder to move
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


MoveFolderAsync(IConnection, string, string, CancellationToken)

Moves specified folder and its subfolders to new location.

public Task MoveFolderAsync(IConnection connection, string newParentFolder, string folderName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
newParentFolderStringNew location for moved folder
folderNameStringFolder to move
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also