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

AlternateView.GetContentStream Method

Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9147)

GetContentStream(Boolean)

Returns the stream representing a content of this attachment. Inherited from AttachmentBase.

Declaration
public Stream GetContentStream(bool writable)
Parameters
Type Name Description
Boolean writable

Specifies whether to return a writable or read-only stream.

Returns
Type Description
Stream

The stream representing a content of this attachment.

Remarks

To set the content of this entity, it is recommended to use one of SetContent(String) or SetContentFromFile methods.

Please note that it is not currently possible to get a writable content stream of an embedded message.

GetContentStream()

Returns the read-only stream representing a content of this attachment. Inherited from AttachmentBase.

Declaration
public Stream GetContentStream()
Returns
Type Description
Stream

The read-only stream representing a content of this attachment.

Remarks

To set the content of this attachment, use one of SetContent(String) or SetContentFromFile methods.

In This Article
  • GetContentStream(Boolean)
  • GetContentStream()
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies