Item Property (AddressLists Collection)

The Item property returns a single AddressList object from the AddressLists collection. Read-only.

Syntax

objAddrListsColl.Item(index)

objAddrListsColl.Item(name)

index
A long integer ranging from 1 to objAddrListsColl.Count.
name
A string representing the value of the Name property of an AddressList object.

The Item property is the default property of an AddressLists collection, meaning that objAddrListsColl(index) is syntactically equivalent to objAddrListsColl.Item(index) in Microsoft® Visual Basic® code.

Data Type

Object (AddressList)

Remarks

The Item property works like an accessor property for small collections.

The Item(index) syntax selects an arbitrary AddressList object within the AddressLists collection. The example in the Count property shows how these two properties can be used together to traverse the collection.

The Item(name) syntax returns the first AddressList object whose Name property matches the string specified by name.

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