Item, Newenum – Echelon OpenLNS User Manual

Page 586

Advertising
background image

OpenLNS Programmer's Reference

549

Item

Summary

Returns a

NetworkInterface

object from a

NetworkInterfaces

collection. You can retrieve a

NetworkInterface

object from its

NetworkInterfaces

collection by passing its index (ordinal

position) within that collection as the argument for the Item

property. Index values start at 1. You can also retrieve a

NetworkInterface

object in

NetworkInterfaces

collections with

the Name property by passing the object’s name as a string

expression.

Availability

Local, full, lightweight, and independent clients. Note that

some objects containing this property are not available to

Independent clients.

Syntax

retrievedObject = collObject.Item(index)

retrievedObject = collObject.Item(stringExpression)

Element

Description

retrievedObject

The

NetworkInterface

object retrieved

from the collection.

collObject

The

NetworkInterfaces

collection object

to be acted on.

index

A Long type specifying the ordinal

index of the

NetworkInterface

object to

be retrieved.

stringExpression A string type specifying the name of the

NetworkInterface

object to be retrieved.

Data Type

Object.

Read/Write

Read only.

Added to API

Depends on the object used to access the property. Generally,

this property exists for an object as soon as the object is

added to the API.

_NewEnum

Summary

Enables you to iterate over the objects in a collection using

For Each ... Next statements.

If you are developing your OpenLNS app in Visual C++,

you can browse a collection to find a particular item by

using the _NewEnum property. See the IEnumVARIANT
interface for details.

If you are developing your OpenLNS app in Visual Basic,

you do not need to use the _NewEnum property because

it is automatically used in the implementation of For

Each ... Next statements.

If you are developing your OpenLNS app in C#, you do

not need to use the _NewEnum property explicitly

because it is automatically used in the implemention of

Advertising