Remove Method (PIPoints collection)

             

 

This method removes the named PIPoint object from the PIPoints collection, and removes the corresponding point from the Server.

 

Syntax

object.Remove Name

The Remove method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIPoints object.

Name

A string expression which is the name of the PI point to remove.

 

Remarks

All history for the removed PI point is lost.  This method is not supported on all types of servers.

 

To remove multiple tags at once, use the IPIPoints2.RemoveTags method.

 

Trappable Errors

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

Error

Description

pseNOEMPTYSTRINGS

An empty string or only blanks was passed for a required argument.

pseINVALIDTAGNAME

The passed tag name was found invalid for this server.

pseACCESSDENIED

Insufficient privileges to create an attribute set.

psePOINTNOTEXIST

The point does not exist on the server.

pseNOSERVERSUPPORT

Server does not support the operation

psePOINTREMOVE

Failed to remove the point from the server.  See the error description string for more information.

Enabling Operational Intelligence