Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFSearchTokenCollection.Insert Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSearchTokenCollection.Insert Method
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

ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than 0.-or-index is greater than Count.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in