OpenPop.NET POP3 Library Documentation

MessagePart.FileName Property

This is a convenient-property for figuring out a FileName for this MessagePart.
If the MessagePart is a MultiPart message, then it makes no sense to try to find a FileName.

The FileName can be specified in the ContentDisposition or in the ContentType properties.
If none of these places two places tells about the FileName, a default "(no name)" is returned.

public string FileName { public get; private set; }

See Also

MessagePart Class | OpenPop.Mime Namespace