Click or drag to resize
MimeKit

MimeEntityPrepare Method

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

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

Parameters

constraint  EncodingConstraint
The encoding constraint.
maxLineLength  Int32  (Optional)
The maximum allowable length for a line (not counting the CRLF). Must be between 72 and 998 (inclusive).

Implements

IMimeEntityPrepare(EncodingConstraint, Int32)
Exceptions
ExceptionCondition
ArgumentOutOfRangeException

maxLineLength is not between 72 and 998 (inclusive).

-or-

constraint is not a valid value.

ObjectDisposedException The MimeEntity has been disposed.
Remarks
Prepares the MIME entity for transport using the specified encoding constraints.
See Also