Click or drag to resize
MimeKit

FormatOptionsParameterEncodingMethod Property

Get or set the method to use for encoding Content-Type and Content-Disposition parameter values.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public ParameterEncodingMethod ParameterEncodingMethod { get; set; }

Property Value

ParameterEncodingMethod
The parameter encoding method that will be used.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is not a valid value.
Remarks

The method to use for encoding Content-Type and Content-Disposition parameter values when the EncodingMethod is set to Default.

The MIME specifications specify that the proper method for encoding Content-Type and Content-Disposition parameter values is the method described in rfc2231. However, it is common for some older email clients to improperly encode using the method described in rfc2047 instead.

See Also