Insert Method (PIModules collection)

             

Inserts an existing PIModule into the collection.

 

Syntax

object.Insert Module

The Insert method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIModules object.

Module

Existing module to add to the collection.

 

Remarks

The Insert method adds a module, that was created in a different PIModules collection, to this PIModules collection. This allows referencing a PIModule in multiple hierarchies. The name of the PIModule inserted must be unique within the collection.

Inserting a PIModule into a PIModules collection doesn't change the revision information of the parent PIModule.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseNOGENSERVER

The parent underlying generic server object could not be retrieved.

Enabling Operational Intelligence