Content DispositionParameters Property
Get the list of parameters on the ContentDisposition.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The parameters.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public ParameterList Parameters { get; }Property Value
ParameterListThe 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.EncodingMethod = ParameterEncodingMethod.Rfc2047;