다음을 통해 공유


Item Method

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

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

구문

object.Item(Name | Position ) as Object

Parts

  • object
    Expression that evaluates to an object in the Applies To list

  • Name | Position
    Either a string that identifies an object by Microsoft SQL Server component name or a long integer that specifies an ordinal location in the container

Returns

A reference to the object extracted.

주의

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 restrictions to identify items where component name does not offer unique identification. Other containers do not support component name as an argument for the Itemmethod at all.

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

Applies To:

All collection and list objects