BodyPartBasicFileName Property

Get the name of the file.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
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

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