  | ParameterEncodingMethod Enumeration | 
            The method to use for encoding Content-Type and Content-Disposition parameter values.
            
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.12.0
Syntaxpublic enum ParameterEncodingMethod
Members| Member name | Value | Description | 
|---|
| Default | 0 | 
            Use the default encoding method set on the FormatOptions.
             | 
| Rfc2231 | 1 | 
            Use the encoding method described in rfc2231.
             | 
| Rfc2047 | 2 | 
            Use the encoding method described in rfc2047 (for compatibility with older,
            non-rfc-compliant email clients).
             | 
Remarks
            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.
            
Example
foreach (var parameter in part.ContentDisposition.Parameters)
    parameter.EncodingMethod = ParameterEncodingMethod.Rfc2047;
See Also