AddressList.GetContactsFolder Method
Obtains a Folder object that represents the Contacts folder for the AddressList object.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Function GetContactsFolder As MAPIFolder
'Usage
Dim instance As AddressList
Dim returnValue As MAPIFolder
returnValue = instance.GetContactsFolder()
[DispIdAttribute()]
MAPIFolder GetContactsFolder()
Return Value
Type: Microsoft.Office.Interop.Outlook.MAPIFolder
A Folder object that represents the Outlook Contacts folder for the AddressList. Returns Null (Nothing in Visual Basic) if no Outlook contacts folder is found.
Remarks
This method allows you to match an AddressList for the Contacts folder that you would like to set up as the initial address list in the Select Names dialog box.
See Also
Reference
Microsoft.Office.Interop.Outlook Namespace
Other Resources
How to: Display in the Select Names Dialog Box the Address Book Corresponding to a Contacts Folder