Methods – Echelon OpenLNS User Manual

Page 173

Advertising
background image

OpenLNS Programmer's Reference

136

Note that the

Interface

property of all

AppDevice

objects contain a ComponentApps collection;

however, the behavior of this collection is unspecified.

The following table summarizes the

ComponentApps

object.

Description

A collection of objects.

Added to API

Prior to LNS Release 3.0.

Accessed Through

DeviceTemplate

object

LonMarkObject

ObjectServer

object

System

object

Default Property

Item

Methods

Add

Remove

Properties

ClassId

Count

Item

Parent

_NewEnum

Methods

The ComponentApps

object contains the following methods

.

Add

Remove

Add

Summary

Defines a new

ComponentApp

object.

Availability

Local, full, lightweight, and independent clients.

Syntax

compAppObject = compAppsColl.Add (compAppName,

registeredServer, classId)

Element

Description

compAppObject

The newly defined

ComponentApp

object.

compAppsColl

The

ComponentApps

collection object.

compAppName

A String containing the name of the

plug-in command. The name should be

a descriptive name suitable for display

as a menu selection.

registeredServer A String containing the registered

(OLE) automation server name for the

plug-in containing the command.

classId

An Integer value indicating the type of

object with which the

ComponentApp

object is to be associated.
See the

ComponentClassID

property in

Advertising