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

GraphClient.AddAttachment Method

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

AddAttachment(GraphMessageId, String, GraphAddAttachmentOptions)

Adds an attachment to the specified message.

Declaration
public GraphAttachmentInfo AddAttachment(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
GraphAttachmentInfo

GraphAttachmentInfo object containing information about the attachment.

Examples

See AddAttachment code example on product pages.

AddAttachment(GraphMessageId, Stream, GraphAddAttachmentOptions)

Adds an attachment to the specified message.

Declaration
public GraphAttachmentInfo AddAttachment(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
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