Message PartialJoin(Mime Message, IRead Only ListMessage Partial) Method
Join the specified message/partial parts into the complete message.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The re-combined message.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static MimeMessage? Join(
MimeMessage message,
IReadOnlyList<MessagePartial> partials
)Parameters
- message MimeMessage
- The message that contains the first `message/partial` part.
- partials IReadOnlyListMessagePartial
- The list of partial message parts.
Return Value
MimeMessageThe re-combined message.
Remarks
Combines all the message/partial fragments into its original,
complete, message.
Exceptions
| ArgumentNullException |
messageis .-or- partialsis . |
| 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. |