Add Method (PIAnnotations collection)

             

Adds a PIAnnotation to the collection. Returns the PIAnnotation added.

 

Syntax

object.Add bstrName, bstrDescription, varValue, bFile, varType

 

The Add method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIAnnotations object.

bstrName

Name assigned to the annotation. The name must be unique within this collection.

bstrDescription

Description assigned to the annotation.

varValue

VARIANT containing the Value to assign to the annotation. If the annotation is a file (see bFile argument), then this is the file name with complete path.

bFile

Boolean. If true, then varValue contains the file name with complete path.

varType

VARIANT containing the Type of the annotation. This is used to differentiate between annotations added by different applications.

 

Enabling Operational Intelligence