简体   繁体   English

访问联系人文件夹Outlook vb.net

[英]Access contacts folder outlook vb.net

I want to access all the contacts from the global adress list found in outlook at current I can only access the "Contacts" folder ussing the following code... 我想从当前在Outlook中找到的全局地址列表访问所有联系人,我只能使用以下代码访问“联系人”文件夹...

 Dim cContacts As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
                Dim oItems As Outlook.Items = cContacts.Items

How can I achive / access this? 我如何达到/访问此地址?

Use Namespace.AddressLists for that. 为此使用Namespace.AddressLists Eg Application.Session.AddressLists.Item("All users") 例如Application.Session.AddressLists.Item("All users")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM