Ews.DeleteItemAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 8.0.9673)
DeleteItemAsync(EwsItemId, Object)
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 object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |
DeleteItemAsync(EwsItemId, EwsDeleteMode, Object)
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 object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |