Click or drag to resize
MimeKit

ContentDispositionParameters Property

Get the list of parameters on the ContentDisposition.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public ParameterList Parameters { get; }

Property Value

ParameterList
The parameters.
Remarks
In addition to specifying whether the entity should be treated as an attachment vs displayed inline, the Content-Disposition header may also contain parameters to provide further information to the receiving client such as the file attributes.
Example
C#
// Some versions of Outlook expect the rfc2047 style of encoding for the filename parameter value.
if (part.ContentDisposition.Parameters.TryGetValue ("filename", out var parameter))
    parameter.EncodingMehod = ParameerEncodngMethod.Rfc2047;
See Also