 | IMailFolderCreate(String, SpecialFolder, CancellationToken) Method |
Create a new subfolder with the given name.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.10.0
SyntaxIMailFolder Create(
string name,
SpecialFolder specialUse,
CancellationToken cancellationToken = default
)
Parameters
- name String
- The name of the folder to create.
- specialUse SpecialFolder
- The special use for the folder being created.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
IMailFolderThe created folder.
Exceptions
Remarks
Creates a new subfolder with the given name.
See Also