Item Property (InfoStores Collection)

The Item property returns a single InfoStore object from the InfoStores collection. Read-only.

Syntax

objInfoStoresColl.Item(index)

objInfoStoresColl.Item(storeName)

index
A long integer ranging from 1 to objInfoStoresColl.Count.
storeName
A string representing the name of the desired InfoStore. This can be obtained from the Name property of an InfoStore object.

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

Data Type

Object (InfoStore)

Remarks

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

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

Example

For more information on using the Count and Item properties in an InfoStores collection, see the example in the Count property.