MboxStorageReader

MboxStorageReader class

A base class for any mbox-based mail storage reader.

public abstract class MboxStorageReader : IDisposable

Properties

Name Description
BaseStream { get; } Gets the base stream.
CurrentDataSize { get; } Gets the number of bytes that is read by ReadNextMessage method.

Methods

Name Description
static CreateReader(Stream, MboxLoadOptions) Creates the instance of reader.
static CreateReader(string, MboxLoadOptions) Creates the instance of reader.
static CreateReader(Stream, MboxLoadOptions, CancellationToken) Creates the instance of reader.
static CreateReader(string, MboxLoadOptions, CancellationToken) Creates the instance of reader.
Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
EnumerateMessages() Exposes the enumerator, which supports an iteration of messages in storage.
abstract GetTotalItemsCount() Returns the number of messages in a storage.
abstract ReadNextMessage() Reads the next message from underlying storage stream.
abstract ReadNextMessage(out string) Reads the next message from underlying storage stream.

See Also