Mime ParserSet Stream(Stream, Mime Content Storage) Method
Set the stream to parse.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void SetStream(
Stream stream,
MimeContentStorage storage
)Parameters
- stream Stream
- The stream to parse.
- storage MimeContentStorage
- The storage used for parsed MIME part content.
Implements
IMimeParserSetStream(Stream, MimeContentStorage)Remarks
Sets the stream to parse.
Memory copies MIME part content into memory (the default). Source references content in the seekable input stream instead. The caller owns the stream in both modes. With Source, keep it open and its contents unchanged while the parsed content is in use. Disposing parsed messages or entities does not close the input stream.
Exceptions
| ArgumentOutOfRangeException | storage is not a valid value. |
| ArgumentException | storage is Source and stream is not seekable. |
| ArgumentNullException | stream is . |