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

AF SDK Reference

AFSearchTokenCollection.IndexOf Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSearchTokenCollection.IndexOf Method
Searches for the specified object and returns the zero-based index of the first occurrence within the entire ListT.

Namespace:  OSIsoft.AF.Search
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public int IndexOf(
	AFSearchTokenBase item
)
Public Function IndexOf ( 
	item As AFSearchTokenBase
) As Integer

Dim instance As AFSearchTokenCollection
Dim item As AFSearchTokenBase
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public:
virtual int IndexOf(
	AFSearchTokenBase^ item
) sealed
abstract IndexOf : 
        item : AFSearchTokenBase -> int 
override IndexOf : 
        item : AFSearchTokenBase -> int 

Parameters

item
Type: OSIsoft.AF.SearchAFSearchTokenBase
The object to locate in the ListT. The value can be null for reference types.

Return Value

Type: Int32
The zero-based index of the first occurrence of item within the entire ListT, if found; otherwise, –1.

Implements

IListTIndexOf(T)

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