Item Method (SQL-DMO)

The Item method extracts a member from a SQL-DMO container object such as the Databases collection or the NameList object.

Applies To

All collection and list objects

Syntax

object.Item( Name | Position ) as Object

Part Description
object Expression that evaluates to an object in the Applies To list
Name | Position Either a string identifying an object by Microsoft® SQL Server™ component name or a long integer specifying an ordinal location in the container

Returns

A reference to the object extracted.

Remarks

In general, SQL-DMO supports container member dereferencing using either a string naming an item or an ordinal position for an item. Some SQL-DMO containers support additional restriction to identify items where component name does not offer unique identification. Other containers do not support component name as an argument for the Item method at all.

For more information about support for Item, see documentation for a specific container object.

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.