Click or drag to resize
MimeKit

EncoderFilterCreate(String, 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(
	string name,
	int maxLineLength = 78
)

Parameters

name  String
The name of 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).
ArgumentNullExceptionname is null.
Remarks
Creates a new EncoderFilter for the specified encoding.
See Also