Click or drag to resize
MimeKit

ExperimentalMimeParser(ParserOptions, Stream, MimeFormat, Boolean) Constructor

Initialize a new instance of the ExperimentalMimeParser class.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public ExperimentalMimeParser(
	ParserOptions options,
	Stream stream,
	MimeFormat format,
	bool persistent = false
)

Parameters

options  ParserOptions
The parser options.
stream  Stream
The stream to parse.
format  MimeFormat
The format of the stream.
persistent  Boolean  (Optional)
true if the stream is persistent; otherwise false.
Exceptions
ExceptionCondition
ArgumentNullException

options is null.

-or-

stream is null.

Remarks

Creates a new ExperimentalMimeParser that will parse the specified stream.

If persistent is true and stream is seekable, then the ExperimentalMimeParser 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 ExperimentalMimeParser performance.

It should be noted, however, that disposing stream will make it impossible for MimeContent to read the content.

See Also