| title | Item Property (ADO) | Microsoft Docs | |||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.prod | sql | |||||||||||||||||||||||||||||||
| ms.prod_service | connectivity | |||||||||||||||||||||||||||||||
| ms.technology | connectivity | |||||||||||||||||||||||||||||||
| ms.custom | ||||||||||||||||||||||||||||||||
| ms.date | 01/19/2017 | |||||||||||||||||||||||||||||||
| ms.reviewer | ||||||||||||||||||||||||||||||||
| ms.topic | conceptual | |||||||||||||||||||||||||||||||
| apitype | COM | |||||||||||||||||||||||||||||||
| f1_keywords |
|
|||||||||||||||||||||||||||||||
| helpviewer_keywords |
|
|||||||||||||||||||||||||||||||
| ms.assetid | e11484bb-c5c7-42d8-9bb8-21572125d727 | |||||||||||||||||||||||||||||||
| author | MightyPen | |||||||||||||||||||||||||||||||
| ms.author | genemi |
Indicates a specific member of a collection, by name or ordinal number.
Set object = collection.Item ( Index )
Returns an object reference.
Index
A Variant expression that evaluates either to the name or to the ordinal number of an object in a collection.
Use the Item property to return a specific object in a collection. If Item cannot find an object in the collection corresponding to the Index argument, an error occurs. Also, some collections don't support named objects; for these collections, you must use ordinal number references.
The Item property is the default property for all collections; therefore, the following syntax forms are interchangeable:
collection.Item (Index)
collection (Index)