[英]How to assign DL mail address to Outlook.AddressEntry object to GetExchangeDistributionListMembers?
I have a requirement in my web application to all show particular page to people who are member of particular DL. 我的Web应用程序中要求全部向特定DL成员的人显示特定页面。
kindly help me on the below code i'm not able to assign dl mail addesser. 请在下面的代码上帮助我,我无法分配dl邮件地址。
private void GetDistributionListMembers()
{
string test = "test@mail.com";
Outlook.AddressEntry addrEntry == ???
Outlook.ExchangeDistributionList exchDL = addrEntry.GetExchangeDistributionList();
Outlook.AddressEntries addrEntries = exchDL.GetExchangeDistributionListMembers();
if (addrEntries != null)
foreach (Outlook.AddressEntry exchDLMember
in addrEntries)
{
//Debug.WriteLine(exchDLMember.Name);
}
}
}
调用Namespace.ResolveName(返回收件人对象),调用Recipient.Resolve,使用Recipient.AddressEntry属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.