Owner manual
OpenLNS Programmer's Reference 399
lcaErrDuplicateKey exception will
be thrown.
sourceInterfaceObj
The existing Interface object used to
create the new Interface object.
If the sourceInterfaceObj element is
specified, the new Interface object
will be created with the same
NetworkVariables collection as the
Interface object referenced as the
sourceInterfaceObj. If the
sourceInterfaceObj is null, a new,
empty Interface object will be
created.
Added to API
Prior to LNS Release 3.0.
Remove
Summary
Removes an Interface object from the system. Removing an
Interface object from the Interfaces collection also deletes
their (dynamic) LonMarkObject objects and their associated
NetworkVariable and (dynamic) MessageTag objects.
Availability
Local, full, and lightweight clients.
Syntax
interfacesColl.Remove indexName
Element
Description
interfacesColl
The Interfaces collection object
containing the interface to be removed.
indexName
A Long value specifying the collection
index of the Interface object to remove,
or a String value specifying the name of
the Interface object to remove.
Added to API
Prior to LNS Release 3.0.
Properties
The Intefaces object contains the following properties:
• ClassID
• Count
• Item
• Parent
• _NewEnum
ClassId
Summary
Identifies the object class of this object.
This property allows the object type to be determined when it
is unknown (for example, when the object was accessed using
the Parent property of another object).
Availability
Local, full, lightweight, and independent clients. Note that