Mime |
public MimeParser( ParserOptions options, Stream stream, bool persistent = false )
Exception | Condition |
---|---|
ArgumentNullException | options is null. -or- stream is null. |
Creates a new MimeParser that will parse the specified stream.
If persistent is true and stream is seekable, then the MimeParser will not copy the content of MimeParts into memory. Instead, it will use a BoundStream to reference a substream of stream. This has the potential to not only save memory usage, but also improve MimeParser performance.
It should be noted, however, that disposing stream will make it impossible for MimeContent to read the content.