AFDataPipeEvent Constructor (AFDataPipeAction, AFValue)
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Construct a new data pipe event given a pipe action and an AFvalue.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFDataPipeEvent( AFDataPipeAction action, AFValue value )
Public Sub New ( action As AFDataPipeAction, value As AFValue ) Dim action As AFDataPipeAction Dim value As AFValue Dim instance As New AFDataPipeEvent(action, value)
public: AFDataPipeEvent( AFDataPipeAction action, AFValue^ value )
new : action : AFDataPipeAction * value : AFValue -> AFDataPipeEvent
Parameters
- action
- Type: OSIsoft.AF.DataAFDataPipeAction
AFDataPipeAction of the event - value
- Type: OSIsoft.AF.AssetAFValue
AFValue portion of the event. The Attribute/PIPoint property of the AFValue is used to identify the source of the AFDataPipeEvent.
Remarks
AFDataPipeEvent will take ownership of the passed AFValue. If an application wants to assign the
same value to multiple AFDataPipeEvents for different source AFAttributes, it should make
copy of the AFValue and set the Attribute property of the AFValue before calling the constructor