HtmlToTextMaxInputLength Property

Get or set the maximum input length.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int MaxInputLength { get; set; }

Property Value

Int32
The maximum input length.

Remarks

Gets or sets the maximum number of UTF-16 characters read from the input, including markup and suppressed content. This also bounds individual tokens and retained attributes. Exceeding this limit throws a FormatException.

The default value is 16777216. The header and footer are not included in this limit.

Exceptions

ArgumentOutOfRangeException value is less than 1.

See Also