PIPointList.Add Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method adds the passed PIPoint to the list and returns the index where the
point was added.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public int Add( PIPoint point )
Public Function Add ( point As PIPoint ) As Integer Dim instance As PIPointList Dim point As PIPoint Dim returnValue As Integer returnValue = instance.Add(point)
public: int Add( PIPoint^ point )
member Add : point : PIPoint -> int
Parameters
- point
- Type: OSIsoft.AF.PIPIPoint
The PIPoint to be added to the list.
Return Value
Type: Int32Index of the newly added point
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | If the passed point is . |
Remarks
The PIPointList collection allows duplicate PIPoint objects to be added to the list.