Initialize Method (PIEventObject object)

               

 

The Initialize method is used on a newly created PIEventObject to populate its properties.  Typically a PIEventObject is created and populated internally by the PI-SDK and is retrieved through an EventPipe and read by a client program.  In some rare cases it may be necessary for a client program to create its own events and push them into an EventPipe.  To populate the PIEventObject in such a case call the Initialize method.

Not Implemented 

Syntax

object.Initialize eaAction, strActivate, vtEventData

The Initialize method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIEventObject object.

eaAction

A member of the EventActionConstants enumeration describing the action taken that resulted in the PIEventObject.  (See settings for possible values)

strActivate

An activation string used to restore the object involved with this PIEventObject.  These strings are typically obtained from the IPIPassivate interface.

vtEventData

A Variant containing data associated with this PIEventObject.  

 

Settings

The possible values for the eaAction argument are:

Setting

Description

eaUpdate

The event represents an update

eaAdd

The event represents an addition

eaDelete

The event represents a deletion.

eaEdit

The event represents an edit

 

Remarks

The properties provided with each PIEventObject are dependent on the EventPipe source.  See the PIEventObject for details.

 

Enabling Operational Intelligence