Html To TextMax Element Depth Property
Get or set the maximum element depth.
Definition
Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The maximum element depth.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int MaxElementDepth { get; set; }Property Value
Int32The maximum element depth.
Remarks
Gets or sets the maximum number of open elements tracked by the converter. Unlike the tokenizer, the converter counts repeated nested elements separately. Exceeding this limit throws a FormatException.
The default value is 4096.
Exceptions
| ArgumentOutOfRangeException | value is less than 1. |