简体   繁体   English

如何将DL邮件地址分配给Outlook.AddressEntry对象到GetExchangeDistributionListMembers?

[英]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.

相关问题 如何从具有邮箱地址的String中检索Outlook.AddressEntry对象? - How to retrieve Outlook.AddressEntry object from String with the mailbox address? 如何从GAL(全局地址列表)中获取addressEntry对象的完全匹配 - How to fetch exact match of addressEntry object from GAL (Global Address List) 类Microsoft.Office.Interop.Outlook.Recipient:属性AddressEntry.Name和AddressEntry.Address的设置方法无效 - class Microsoft.Office.Interop.Outlook.Recipient : setter of properties AddressEntry.Name and AddressEntry.Address has no effect 从全局地址列表MSDN收集AddressEntry对象 - Collection of AddressEntry object from Global Address List MSDN 使用Outlook对象模型的邮件项目的发件人邮件地址 - Senders mail address of a mail item using Outlook object model 将发件人地址更改为Outlook Object Mail中的默认服务器 - Changing the sender address to default server in Outlook Object Mail Outlook邮件对象密件抄送 - outlook mail object bcc 如何在发送前打开 outlook 邮件 object 作为草稿 email? - How to open outlook mail object as a draft email before sending? 如何使用c#从具有MultiAccount的Outlook 2010中的“撰写邮件”窗口中的(发件人)邮件地址获取信息? - how to get from(sender) mail address in Compose mail window in outlook 2010 having MultiAccount using c#? 如何获取与文件夹项关联的发件人电子邮件地址? (vsto / Outlook 2010 / Mapi) - How to get the sender e-mail address associated by the folder item? (vsto / outlook 2010 / mapi)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM