Click or drag to resize
MimeKit

MessagePartialJoin(MimeMessage, IEnumerableMessagePartial) Method

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

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

Parameters

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

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