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.
使用 .net v3.5 或更低版本时,需要在使用 SMTP 客户端发送电子邮件后手动处理附件,这在 .net v4 中是否仍然需要?
根据 MSDN, .net 4 中仍然存在Dispose()方法,并且注释仍然说您应该调用它,所以我认为没有任何改变。
是的。该类是 IDisposable 并且MSDN 示例仍然在其上调用 Dispose。