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

GraphClient.AddAttachmentAsync Method

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

AddAttachmentAsync(GraphMessageId, String, GraphAddAttachmentOptions)

Adds an attachment to the specified message.

Declaration
public Task<GraphAttachmentInfo> AddAttachmentAsync(GraphMessageId messageId, string filePath, GraphAddAttachmentOptions options = null)
Parameters
Type Name Description
GraphMessageId messageId

ID of a message to which to add the attachment.

String filePath

Path to a file to read attachment data from.

GraphAddAttachmentOptions options

A stream to read attachment data from.

Returns
Type Description
Task<GraphAttachmentInfo>

GraphAttachmentInfo object containing information about the attachment.

Examples

See AddAttachment code example on product pages.

AddAttachmentAsync(GraphMessageId, Stream, GraphAddAttachmentOptions)

Adds an attachment to the specified message.

Declaration
public Task<GraphAttachmentInfo> AddAttachmentAsync(GraphMessageId messageId, Stream input, GraphAddAttachmentOptions options = null)
Parameters
Type Name Description
GraphMessageId messageId

ID of a message to which to add the attachment.

Stream input

A stream to read attachment data from.

GraphAddAttachmentOptions options

A stream to read attachment data from.

Returns
Type Description
Task<GraphAttachmentInfo>

GraphAttachmentInfo object containing information about the attachment.

Examples

See AddAttachment code example on product pages.

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