MimeEntity.GetContentStream Method
Namespace: Rebex.Mime
Assembly: Rebex.Mail.dll (version 7.0.9119)
GetContentStream(Boolean)
Returns the stream representing a content of this entity.
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 entity. |
Remarks
To set the content of this entity, it is recommended to use one of SetContent(String) or SetContentFromFile(String) methods.
GetContentStream()
Returns the read-only stream representing a content of this entity.
Declaration
public Stream GetContentStream()
Returns
Type | Description |
---|---|
Stream | The read-only stream representing a content of this entity. |
Remarks
To set the content of this entity, use one of SetContent(String) or SetContentFromFile(String) methods.