System.Net.Mail中的UrlContentLocation? [英] UrlContentLocation in System.Net.Mail?

查看:102
本文介绍了System.Net.Mail中的UrlContentLocation?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在处理转换1.1 app到2.0。


System.Web.Mail 在 MailMessage 对象中有 UrlContentLocation


到目前为止,我无法找到任何关于替换(或解决方法)的评论。


MSDN建议的所有内容都是"使用 System.Net.Mail "。



任何想法或评论?



非常感谢,



An。

解决方案

使用:

MailMessage mail = new MailMessage();

mail.Headers.Add(" Content-Location"," your-url-here");


Hi,

 

I’m dealing with conversion 1.1 app into 2.0.

System.Web.Mail has UrlContentLocation in MailMessage object.

So far I’m unable to find any comment on its replacement (or workaround).

All that MSDN suggested is "to use System.Net.Mail".

 

Any ideas or comments?

 

Thanks a lot,

 

An.

解决方案

Use :

MailMessage mail = new MailMessage();

mail.Headers.Add( "Content-Location","your-url-here");


这篇关于System.Net.Mail中的UrlContentLocation?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆