GetItemWithIndex Method (PIAnnotations object)

             

 

Retrieves a PIAnnotation from the collection by name or by position in the collection. The position of the item in the collection is returned along with the item.

 

Syntax

object.GetItemWithIndex varIndex, pIndex

The Item property syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIAnnotations object.

varIndex

A VARIANT that specifies a member of the collection, as described in Settings.

pIndex The numerical position of the item in the collection.

 

Settings

The settings for index are:

Setting

Description (collections implementing setting)

position number

Specifies the position number of a member of the collection. Must range from 1 to the value of the collection's Count property. (See Remarks for specifics.).

string

Specifies a collection member by name. Must be equal to the Name property of a member of the collection. (See Remarks for specifics.).

 

Remarks

The position number of a collection member may change as new members are added.

 

Enabling Operational Intelligence