Platform SDK: CDO 1.2.1

AddressLists Property (Session Object)

The AddressLists property returns a single AddressList object or an AddressLists collection object. Read-only.

Syntax

Set objAddrListsColl = objSession.AddressLists

Set objOneAddrList = objSession.AddressLists(index)

Set objOneAddrList = objSession.AddressLists(name)

objAddrListsColl
Object. An AddressLists collection object.
objSession
Object. The Session object.
objOneAddrList
Object. A single AddressList object.
index
Long. Specifies the number of the address list within the AddressLists collection. Ranges from 1 to the value specified by the AddressLists collection’s Count property.
name
String. The value of the Name property of the AddressList object to be selected.

Data Type

Object (AddressList or AddressLists collection)

Remarks

The AddressLists collection represents the root of the MAPI address book hierarchy for the current session. A particular AddressList object represents one of the available address books. The type of access you obtain depends on the access granted to you by each individual address book provider.

Although the AddressLists property itself is read-only, the collection it returns can be accessed in the normal manner, and the properties on its member AddressList objects retain their respective read/write or read-only accessibility.