Click or drag to resize
MimeKit

MimeEntityLoad(ParserOptions, Stream, CancellationToken) Method

Load a MimeEntity from the specified stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static MimeEntity Load(
	ParserOptions options,
	Stream stream,
	CancellationToken cancellationToken = default
)

Parameters

options  ParserOptions
The parser options.
stream  Stream
The stream.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

MimeEntity
The parsed MIME entity.
Exceptions
ExceptionCondition
ArgumentNullException

options is null.

-or-

stream is null.

OperationCanceledException The operation was canceled via the cancellation token.
FormatException There was an error parsing the entity.
IOException An I/O error occurred.
Remarks
Loads a MimeEntity from the given stream, using the specified ParserOptions.
See Also