MimeReadOptions Class

The options of the MIME reader. The limits protect it from messages crafted to make it use too much memory or time.

public sealed class MimeReadOptions

Constructors

NameDescription
MimeReadOptions()

MimeReadOptions()

MimeReadOptions.cs
public MimeReadOptions()

No documentation is available.

Properties

NameDescription
MaxDepthGets or sets the maximum depth of the multiparts and of the embedded messages. A deeper entity is read as a leaf part. The default is 64.
MaxPartsGets or sets the maximum number of parts of a multipart. The default is 10,000.
MaxSizeGets or sets the maximum size, in bytes, of a message read from a stream. The default is 1 GB.

Gets or sets the maximum depth of the multiparts and of the embedded messages. A deeper entity is read as a leaf part. The default is 64.

public int MaxDepth { get; set; }

Property value

int

Gets or sets the maximum number of parts of a multipart. The default is 10,000.

public int MaxParts { get; set; }

Property value

int

Gets or sets the maximum size, in bytes, of a message read from a stream. The default is 1 GB.

public long MaxSize { get; set; }

Property value

long