Click or drag to resize

ImapRenameFolderAsync(String, String, CancellationToken) Method

Changes the name of a folder (mailbox).

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task RenameFolderAsync(
	string existingFolder,
	string newFolder,
	CancellationToken cancel = default
)

Parameters

existingFolder  String
Existing folder name.
newFolder  String
New folder name.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

Task
A task that represents the asynchronous rename IMAP folder operation.
Remarks
IMAP servers may differ in the separator character used in folder hierarchy paths. Common separator chars are '.' and '/'. For example: "Inbox/Folder" or "Inbox.Folder".
See Also