Ews.DeleteItemAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9119)
DeleteItemAsync(EwsItemId, Object)
Begins asynchronous DeleteItem operation. Deletes an item specified by its ID. Use DeleteMode to specify whether to delete item permanently or move it to Deleted Items folder.
Declaration
public Task DeleteItemAsync(EwsItemId itemId, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsItemId | itemId | ID of an item to delete. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
DeleteItemAsync(EwsItemId, EwsDeleteMode, Object)
Begins asynchronous DeleteItem operation. Deletes an item specified by its ID.
Declaration
public Task DeleteItemAsync(EwsItemId itemId, EwsDeleteMode deleteMode, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsItemId | itemId | ID of an item to delete. |
EwsDeleteMode | deleteMode | Specify whether to delete item permanently or move it to Deleted Items folder. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |