Click or drag to resize
MimeKit

MessagePartialJoin(ParserOptions, MimeMessage, IEnumerableMessagePartial) Method

Join the specified message/partial parts into the complete message.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static MimeMessage Join(
	ParserOptions options,
	MimeMessage message,
	IEnumerable<MessagePartial> partials
)

Parameters

options  ParserOptions
The parser options to use.
message  MimeMessage
The message that contains the first `message/partial` part.
partials  IEnumerableMessagePartial
The list of partial message parts.

Return Value

MimeMessage
The re-combined message.
Exceptions
ExceptionCondition
ArgumentNullException

options is null.

-or-

messageis null.

-or-

partialsis null.

ArgumentException

The last partial does not have a "total" parameter in the Content-Type header.

-or-

The number of partials provided does not match the expected count.

-or-

One or more partials is missing.

InvalidOperationException

One or more partials has a mismatching id parameter in the Content-Type header.

-or-

One or more partials has a missing number parameter in the Content-Type header.

Remarks
Combines all of the message/partial fragments into its original, complete, message.
See Also