A base class for any mbox-based mail storage writer. More...
Inherits IDisposable.
Inherited by Aspose::Email::Storage::Mbox::MboxrdStorageWriter.
Public Member Functions | |
| System::SharedPtr< System::IO::Stream > | get_BaseStream () const |
| Gets the base stream. More... | |
| virtual System::String | WriteMessage (System::SharedPtr< MailMessage > message)=0 |
| Writes the message to underlying storage stream. More... | |
| virtual System::String | WriteMessage (System::SharedPtr< MailMessage > message, System::String &fromMarker)=0 |
| Writes the message to underlying storage stream. More... | |
| void | Dispose () override |
| Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Protected Member Functions | |
| MboxStorageWriter (System::SharedPtr< System::IO::Stream > stream, bool leaveOpen) | |
| Initializes a new instance of the MboxStorageWriter class. More... | |
| MboxStorageWriter (System::String fileName, bool leaveOpen) | |
| Initializes a new instance of the MboxStorageWriter class. More... | |
| virtual void | Dispose (bool disposing) |
| Releases unmanaged and - optionally - managed resources More... | |
Friends | |
| class | Aspose::Email::Storage::Mbox::MboxrdStorageWriter |
A base class for any mbox-based mail storage writer.
|
protected |
Initializes a new instance of the MboxStorageWriter class.
| stream | The stream. |
| leaveOpen | if set to true leaves the underlying stream open after disposing. |
| ArgumentNullException | If given stream is null. |
|
protected |
Initializes a new instance of the MboxStorageWriter class.
| fileName | Name of the file. |
| leaveOpen | if set to true leaves the underlying stream open after disposing. |
| ArgumentNullException | If filename is null or empty. |
|
override |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protectedvirtual |
Releases unmanaged and - optionally - managed resources
| disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
| System::SharedPtr<System::IO::Stream> Aspose::Email::Storage::Mbox::MboxStorageWriter::get_BaseStream | ( | ) | const |
Gets the base stream.
The base stream.
|
pure virtual |
Writes the message to underlying storage stream.
| message | The message to write to. |
Implemented in Aspose::Email::Storage::Mbox::MboxrdStorageWriter.
|
pure virtual |
Writes the message to underlying storage stream.
| message | The message to write to. |
| fromMarker | Gets the From Marker while writing the MBox Storage file. |
Implemented in Aspose::Email::Storage::Mbox::MboxrdStorageWriter.
|
friend |