| ImapDeleteFolderAsync Method (String) |
Permanently removes a folder (mailbox) with the given name.
Namespace:
Limilabs.Client.IMAP
Assembly:
Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax public Task DeleteFolderAsync(
string folder
)
Public Function DeleteFolderAsync (
folder As String
) As Task
public:
Task^ DeleteFolderAsync(
String^ folder
)
member DeleteFolderAsync :
folder : string -> Task
Parameters
- folder
- Type: SystemString
Folder name.
Return Value
Type:
TaskA task that represents the asynchronous IMAP folder delete 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".
The DELETE command MUST NOT remove inferior hierarchical names. For example, if a mailbox "foo" has an inferior "foo.bar"
(assuming "." is the hierarchy delimiter character), removing "foo" MUST NOT remove "foo.bar".
It is an error to attempt to delete a name that has inferior hierarchical names and also has the \Noselect mailbox name attribute.
It is permitted to delete a name that has inferior hierarchical names and does not have the \Noselect mailbox name attribute.
In this case, all messages in that mailbox are removed, and the name will acquire the \Noselect mailbox name attribute.
See Also