ImapClient.RenameFolderAsync

RenameFolderAsync(IConnection, string, string)

Renames a specified folder to a new name

public Task RenameFolderAsync(IConnection connection, string folderName, string newFolderName)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringFolder to be renamed
newFolderNameStringNew folder name

Return Value

Task object, with delegate for this operation

See Also


RenameFolderAsync(string, string)

Renames a specified folder to a new name

public Task RenameFolderAsync(string folderName, string newFolderName)
ParameterTypeDescription
folderNameStringFolder to be renamed
newFolderNameStringNew folder name

Return Value

Task object, with delegate for this operation

See Also


RenameFolderAsync(IConnection, string, string, CancellationToken)

Renames a specified folder to a new name

public Task RenameFolderAsync(IConnection connection, string folderName, string newFolderName, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
folderNameStringFolder to be renamed
newFolderNameStringNew folder name
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


RenameFolderAsync(string, string, CancellationToken)

Renames a specified folder to a new name

public Task RenameFolderAsync(string folderName, string newFolderName, CancellationToken token)
ParameterTypeDescription
folderNameStringFolder to be renamed
newFolderNameStringNew folder name
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also