GraphClient.GetMessageAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 7.0.9313)
GetMessageAsync(GraphMessageId, String)
Begins asynchronous GetMessage operation. Downloads a message with the specified ID and writes its MIME data into a local file.
Declaration
public Task GetMessageAsync(GraphMessageId id, string filePath)Parameters
| Type | Name | Description | 
|---|---|---|
| GraphMessageId | id | ID of a message to retrieve. | 
| String | filePath | Path to a file to which to save the MIME message. | 
Returns
| Type | Description | 
|---|---|
| Task | 
GetMessageAsync(GraphMessageId, Stream)
Begins asynchronous GetMessage operation. Downloads a message with the specified ID and writes its MIME data into the supplied stream.
Declaration
public Task GetMessageAsync(GraphMessageId id, Stream output)Parameters
| Type | Name | Description | 
|---|---|---|
| GraphMessageId | id | ID of a message to retrieve. | 
| Stream | output | Stream to which to save the MIME message. | 
Returns
| Type | Description | 
|---|---|
| Task |