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