Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 openpop .net 库通过 POP3 从邮件服务器检索邮件。一切正常,但我无法检索每个邮件附件的大小。我创建了 GetMessageSize(i) 但这个大小是所有附件的总和。
然后问题是我如何检索每个附件的大小。
有谁能够帮助我?谢谢!
使用attachment.Body.
attachment.Body
foreach(var attachment in message.FindAllAttachments()) { long byteSize = attachment.Body.Length; }