Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Ews.DeleteItemAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9147)

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
In This Article
  • DeleteItemAsync(EwsItemId, Object)
  • DeleteItemAsync(EwsItemId, EwsDeleteMode, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies