Platform SDK: CDO 1.2.1

GetAddressList Method (Session Object)

The GetAddressList method returns an AddressList object from a directory service.

Syntax

Set objAddressList = objSession.GetAddressList(ObjectType)

objAddressList
On successful return, represents the default AddressList object specified by ObjectType.
objSession
Required. The Session object.
ObjectType
Required. Long. Specifies the address list to be retrieved.

Remarks

The GetAddressList method returns the default address list of the specified type for the default directory service of the current session.

The ObjectType parameter can have exactly one of the following values:

ObjectType setting Value Default Address list retrieved
CdoAddressListGAL 0 Global address list
CdoAddressListPAB 1 Personal address book