获取.NET当前用户的电子邮件地址 [英] Get current user's email address in .NET
本文介绍了获取.NET当前用户的电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道用户的电子邮件地址(假设她是一个典型的Windows办公网络)。这是一个C#应用程序。也许东西的效果
CurrentUser.EmailAddress;
解决方案
如果您是Windows域的背后,你总是可以抓住他们的电子邮件地址了Active Directory中的。
下面是一个例子: http://lozanotek.com/blog/articles/149.aspx
I would like to know the email address of the user (assuming she's in a typical Windows office network). This is in a C# application. Perhaps something to the effect of
CurrentUser.EmailAddress;
解决方案
If you're behind a Windows domain, you could always grab their email address out of Active Directory.
Here's an example: http://lozanotek.com/blog/articles/149.aspx
这篇关于获取.NET当前用户的电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文