简体   繁体   中英

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...

 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. Eg Application.Session.AddressLists.Item("All users")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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