Click or drag to resize
MimeKit

EncoderFilterCreate(ContentEncoding, Int32) Method

Create a filter that will encode using specified encoding.

Namespace: MimeKit.IO.Filters
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static IMimeFilter Create(
	ContentEncoding encoding,
	int maxLineLength = 78
)

Parameters

encoding  ContentEncoding
The encoding to create a filter for.
maxLineLength  Int32  (Optional)
The maximum number of octets allowed per line (not counting the CRLF). Must be between 60 and 998 (inclusive).

Return Value

IMimeFilter
A new encoder filter.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionmaxLineLength is not between 60 and 998 (inclusive).
Remarks
Creates a new IMimeFilter for the specified encoding.
See Also