AFSearchTokenCollection.Insert Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Inserts an element into the ListT at the specified index.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public void Insert( int index, AFSearchTokenBase item )
Public Sub Insert ( index As Integer, item As AFSearchTokenBase ) Dim instance As AFSearchTokenCollection Dim index As Integer Dim item As AFSearchTokenBase instance.Insert(index, item)
public: virtual void Insert( int index, AFSearchTokenBase^ item ) sealed
abstract Insert : index : int * item : AFSearchTokenBase -> unit override Insert : index : int * item : AFSearchTokenBase -> unit
Parameters
- index
- Type: SystemInt32
The zero-based index at which item should be inserted. - item
- Type: OSIsoft.AF.SearchAFSearchTokenBase
The object to insert. The value can be null for reference types.
Implements
IListTInsert(Int32, T)
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than 0.-or-index is greater than Count. |