TnefOptionsMaxNestingDepth Property

Get or set the maximum nesting depth of embedded messages.

Definition

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

Property Value

Int32
The maximum nesting depth. The default is DefaultMaxNestingDepth.

Remarks

Gets or sets the maximum depth of embedded messages that will be read before the TNEF stream is assumed to be maliciously formed.

When the limit is exceeded, a NestingTooDeep issue is reported and the embedded message is treated as empty.

Exceptions

ArgumentOutOfRangeException value is negative.

See Also