RDOAddressLists object collection

 

RDOAddressLists collection represents the child address book sub container of either AddressBook or a parent AddressList.

Returned by: AddressBook.AddressLists, AddressList.AddressLists

 

The example below connects to the MAPI session used by Outlook, retrieves an address container named "Contacts" and resolves a name against it.

set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Contacts = Session.AddressBook.AddressLists.Item("Contacts")
set AdrrEntry = Contacts.ResolveName("dmitry")

MsgBox AdrrEntry.Address


Derived from: IDispatch


Properties


Count

integer. Returns the number of subcontainers in the collection

 

_Item(Index)

Index - variant: integer or a string. A default object property.

Retrieves a subcontainer with a given index (1 to Count) or with a given name

Returns AddressList object

 

RawTable IUnknown, read-only. Returns the IMAPITable Extended MAPI interface used internally by the RDOAddressLists collection  
Session RDOSession, read-only. Returns the parent MAPI session represented by the RDOSession object  
MAPITable MAPITable, read-only. Returns the MAPITable Redemption object which can be used to manipulate the collection (restrict, find, etc).  

Methods


Item(Index)

Index - variant: integer or a string.

Retrieves a subcontainer with a given index (1 to Count) or with a given name

Returns AddressList object

 

GetFirst

Returns the first subcontainer in the collection. Returns Nothing if no first subcontainer exists, for example, if there are no subcontainers.

 

GetLast

Returns the last subcontainer in the collection. Returns Nothing if no last subcontainer exists, for example, if there are no subcontainers.

 

GetNext

Returns the next subcontainer in the collection. It returns Nothing if no next subcontainer exists, for example, if already positioned at the end of the collection.

 

GetPrevious

Returns the previous subcontainer in the collection. It returns Nothing if no previous subcontainer exists, for example, if already positioned at the beginning of the collection.