AddressEntries object

 

AddressEntries collection represents the members of either an AddressList or a distribution list.

 

Returned by:

AddressList.AddressEntries

AddressEntry.Members

 

 

Properties

Methods

 


Derived from: IDispatch


Properties


Application Returns Outlook.Application object
 
Class: Always returns 21 (olAddressEntries).
 
Count

integer, read-only. The number of messages in the AddressEntries collection.

 

 
MAPITable

MAPITable, read-only. Returns the MAPITable Redemption object which can be used to manipulate the collection (restrict, find, etc).

 

 
Parent

Parent. Read-only.

 

 
RawTable IUnknown, read-only. Returns the IMAPITable Extended MAPI interface used internally by the Items collection.
 
Session Returns Outlook.Namespace object.
 

Methods


Add(Type, Name, Address) Add and return a new AddressEntry to the container. Not all containers support adding new entries.
Type - string, the address type
Name - string
Address - string.
 
GetFirst

Returns the first address entry in the collection. Returns Nothing if no first address entry exists, for example, if there are no address entries.

 

 
GetLast

Returns the last address entry in the collection. Returns Nothing if no last address entry exists, for example, if there are no address entries.

 

 
GetNext

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

 

 
GetPrevious

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

 

 
Item(Index)

Retrieves an address entry with a given index (1 to Count) or with a given name

Returns AddressEntry object.

Index - variant: integer.

 

 
Sort(Property, Order) Sorts the address entries collection on the given property.