MimeParserSetStream(Stream, MimeFormat) Method

Set the stream to parse.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public virtual void SetStream(
	Stream stream,
	MimeFormat format = MimeFormat.Entity
)

Parameters

stream  Stream
The stream to parse.
format  MimeFormat  (Optional)
The format of the stream.

Implements

IMimeParserSetStream(Stream, MimeFormat)

Remarks

Sets the stream to parse, copying MIME part content into memory.

Exceptions

ArgumentOutOfRangeException format is not a valid value.
ArgumentNullException stream is .

See Also