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

Ews.GetMessageAsync Method

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

GetMessageAsync(EwsItemId, String, Object)

Begins asynchronous GetMessage operation. Downloads and saves a message to specified path in MIME format.

Declaration
public Task GetMessageAsync(EwsItemId itemId, string filePath, object state = null)
Parameters
Type Name Description
EwsItemId itemId

ID of a message to save.

String filePath

Path to a file where to save the message.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task

GetMessageAsync(EwsItemId, Stream, Object)

Begins asynchronous GetMessage operation. Downloads and saves a message to specified stream in MIME format.

Declaration
public Task GetMessageAsync(EwsItemId itemId, Stream output, object state = null)
Parameters
Type Name Description
EwsItemId itemId

ID of a message to save.

Stream output

Stream to which to save the item.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task
In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies