ISecureMimeContextMaxDecompressedSize Property

Get or set the maximum decompressed CMS content size in bytes.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
long MaxDecompressedSize { get; set; }

Property Value

Int64
The maximum decompressed size in bytes.

Remarks

The default is 64 MiB. All decompression methods throw FormatException if the expanded content exceeds this limit. The limit includes MIME headers.

Exceptions

ArgumentOutOfRangeException value is less than one.

See Also