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