Returns the stream representing a content of this attachment.
Namespace:
Rebex.Mail
Assembly:
Rebex.Mail (in Rebex.Mail.dll)
Syntax
Visual Basic |
---|
Public Function GetContentStream ( _ writable As Boolean _ ) As Stream |
C# |
---|
public Stream GetContentStream( bool writable ) |
Parameters
- writable
- Type: System..::..Boolean
Specifies whether to return a writable or read-only stream.
Return Value
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.