PIPointList.Insert Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method inserts the passed in PIPoint object into the PIPointList at the given zero-based index.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void Insert( int index, PIPoint point )
Public Sub Insert ( index As Integer, point As PIPoint ) Dim instance As PIPointList Dim index As Integer Dim point As PIPoint instance.Insert(index, point)
public: void Insert( int index, PIPoint^ point )
member Insert : index : int * point : PIPoint -> unit
Parameters
- index
- Type: SystemInt32
The zero-based index where the point will be inserted. - point
- Type: OSIsoft.AF.PIPIPoint
The PIPoint to be inserted into the list.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If the index is invalid. |
| ArgumentNullException | If the point is . |
Remarks
The PIPointList collection allows duplicate PIPoint objects to be added to the list.