Remove Method (PIModules collection)

             

Removes a PIModule from the collection.

 

Syntax

object.Remove varPIModule

The Remove method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIModules object.

varPIModule

Variant which represents the PIModule to remove.

 

Remarks

The argument varPIModule, may be the PIModule object, the Name, the position number in the collection, or the UniqueID of the PIModule object to remove. The PIModule is permanently deleted from the server if the PIModule being removed exists in no other collections on the server.

Removing a PIModule from 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