Ews.GetItemAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9119)
GetItemAsync(EwsItemId, String, EwsItemFormat, Object)
Begins asynchronous GetItem operation. Downloads and saves an item to specified path in specified format.
Declaration
public Task GetItemAsync(EwsItemId itemId, string filePath, EwsItemFormat format, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsItemId | itemId | ID of an item to save. |
String | filePath | Path to a file where to save the item. |
EwsItemFormat | format | Format in which the item will be saved. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
GetItemAsync(EwsItemId, Stream, EwsItemFormat, Object)
Begins asynchronous GetItem operation. Downloads and saves an item to specified stream in specified format.
Declaration
public Task GetItemAsync(EwsItemId itemId, Stream output, EwsItemFormat format, object state = null)
Parameters
Type | Name | Description |
---|---|---|
EwsItemId | itemId | ID of an item to save. |
Stream | output | Stream to which to save the item. |
EwsItemFormat | format | Format in which the item will be saved. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |