Ews.DeleteFolderAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9083)
DeleteFolderAsync(EwsFolderId, Object)
Begins asynchronous DeleteFolder operation. Deletes an exchange folder. Use DeleteMode to specify whether delete folder permanently or move it to Deleted Items folder.
Declaration
public Task DeleteFolderAsync(EwsFolderId folderId, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsFolderId | folderId | ID of a folder to delete. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
The folder have not to be empty prior to delete operation.