Click or drag to resize
MimeKit

MultipartPrepare Method

Prepare the MIME entity for transport using the specified encoding constraints.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.2.0
Syntax
C#
public override void Prepare(
	EncodingConstraint constraint,
	int maxLineLength = 78
)

Parameters

constraint
Type: MimeKitEncodingConstraint
The encoding constraint.
maxLineLength (Optional)
Type: SystemInt32
The maximum number of octets allowed per line (not counting the CRLF). Must be between 60 and 998 (inclusive).
Exceptions
ExceptionCondition
ArgumentOutOfRangeException

maxLineLength is not between 60 and 998 (inclusive).

-or-

constraint is not a valid value.

Remarks
Prepares the MIME entity for transport using the specified encoding constraints.
See Also