Click or drag to resize
MimeKit

BodyPartBasicFileName Property

Get the name of the file.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public string FileName { get; }

Property Value

String
The name of the file.
Remarks

First checks for the "filename" parameter on the Content-Disposition header. If that does not exist, then the "name" parameter on the Content-Type header is used.

Note  Note
Since the value of the Content-Disposition header is needed, it is necessary to include the BodyStructure flag when fetching summary information from an IMailFolder.
See Also