 | ImapCreateFolderAsync Method |
Creates a folder (mailbox) with the given name.
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task CreateFolderAsync(
string folder,
CancellationToken cancel = default
)
Public Function CreateFolderAsync (
folder As String,
Optional cancel As CancellationToken = Nothing
) As Task
public:
Task^ CreateFolderAsync(
String^ folder,
CancellationToken cancel = CancellationToken()
)
member CreateFolderAsync :
folder : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task Parameters
- folder String
- Folder name.
- cancel CancellationToken (Optional)
- A cancellation token that can be used to signal the asynchronous operation should be canceled.
Return Value
TaskA task that represents the asynchronous IMAP folder create 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