Imap.DeleteFolderAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Imap.dll (version 7.0.9313)
DeleteFolderAsync(String, Object)
Begins asynchronous DeleteFolder operation. Deletes a folder with the specified name.
Declaration
public Task DeleteFolderAsync(string folder, object state = null)
Parameters
| Type | Name | Description | 
|---|---|---|
| String | folder | Folder to be deleted.  | 
    
| Object | state | An optional user-provided object that identifies this particular asynchronous operation.  | 
    
Returns
| Type | Description | 
|---|---|
| Task | 
Remarks
This method represents IMAP DELETE command.