LinkedResource.GetContentStream Method
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9083)
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.