Item Property (PITimeServer Interfaces)

See Also     Example         


Item is a Read-Only property that returns a member from a collection, by name or by position.  The return type is that of the object that the collection holds.



The Item property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
Index An optional expression that specifies a member of the collection, as described in Settings.


The settings for Index are:

Index type Description
number Specifies the position number of a member of the collection. Must range from 1 to the value of the collection's Count property.
String Specifies a collection member by name, usually the Name property of a member of the collection.


The Item property is the default property of the collection, so these expressions have the same meaning:



In some collections, the position number of a collection member may change as new members are added.

The PITimeZoneInfo collection supports item lookup by number, ZoneID and ZoneRulesName.

Enabling Operational Intelligence