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
Function GetContactsFolder As MAPIFolder
'Usage
Dim instance As AddressList
Dim returnValue As MAPIFolder

returnValue = instance.GetContactsFolder()
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

AddressList Interface

AddressList Members

Microsoft.Office.Interop.Outlook Namespace