The function accepts an instance of the Application class from the Oultook Object Model and returns an instance of the generic List collection which contains contact items.
The code shown below collects all contact items from the two mentioned folders using the for loop. This folder contains one-off entries that are used in pop-up prompts to finish the sentence when you enter an e-mail address in one of the recipient fields (TO, CC, BCC). As you may guess, it allows you to retrieve the Suggested Contacts folder in Outlook. One of them is olFolderSuggestedContacts. Outlook 2010 introduced new constants in the OlDefaultFolders enumeration, which can be passed to the GetDefaultFolder method of the Namespace class. But how can we get the Suggested Contacts folder? The olFolderContacts constant of the OlDefaultFolders enumeration should be used for this task. You can get the Contacts folder using the GetDefaultFolder method of the Namespace class. As a rule, there are two folders containing contact items: Contacts and Suggested Contacts folders. Today I am going to show how you can get a list of all contacts of a certain Outlook user. A while ago I described two ways of getting Outlook contact items from a folder: by using the Find/FindNext and Restrict methods of the Items class.