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

GraphClient.GetMessageAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Graph.dll (version 8.0.9673)

GetMessageAsync(GraphMessageId, String)

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
Examples

See GetMessage code example on product pages.

GetMessageAsync(GraphMessageId, Stream)

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
Examples

See GetMessage code example on product pages.

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