| IMailFolderCreateAsync(String, Boolean, CancellationToken) Method |
Asynchronously create a new subfolder with the given name.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax Task<IMailFolder> CreateAsync(
string name,
bool isMessageFolder,
CancellationToken cancellationToken = default
)
Parameters
- name String
- The name of the folder to create.
- isMessageFolder Boolean
- true if the folder will be used to contain messages; otherwise, false.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskIMailFolderThe created folder.
Remarks
Asynchronously creates a new subfolder with the given name.
See Also