Remove Method (PISubBatches collection)

             

Removes a PISubBatch from the PISubBatches collection. The sub-batch is removed from the in-memory collection as well as the collection on the server.

 

Syntax

object.Remove varSubBatch

The Remove method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PISubBatches collection.

varSubBatch

Variant which represents the PISubBatch object to be removed.

 

Remarks

The argument varSubBatch may be the PISubBatch object or the UniqueID of the PISubBatch to remove. If successful, the PISubBatch and all of the PISubBatch's below it in the hierarchy (in its PISubBatches collection) are permanently removed from the parent PIUnitBatch.

 

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