system.web.mail VS system.net.mail [英] system.web.mail vs system.net.mail
本文介绍了system.web.mail VS system.net.mail的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是什么区别 System.Web.Mail
和 System.Net.Mail
?
推荐答案
-
System.Web.Mail
在.NET框架1.1版
System.Web.Mail
was in .NET Framework v1.1System.Net.Mail
是.NET框架2.0版起System.Net.Mail
is in .NET Framework v2.0 onwards它们都用于相同的目的。如果你使用
System.Web.Mail
只显示一个警告,说这是德precated。它仍然有效的应该。They are both used for the same purpose. If you use
System.Web.Mail
it only shows a warning, saying this is deprecated. It still works as supposed to.如果你真的使用.NET框架的高版本(2.0或更高版本),然后用System.Net.Mail。
If you are really using higher version (2.0 or later) of .NET framework, then use System.Net.Mail.
这篇关于system.web.mail VS system.net.mail的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文