AFSearchTokenCollection.Contains Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Determines whether an element is in the ListT.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Contains( AFSearchTokenBase item )
Public Function Contains ( item As AFSearchTokenBase ) As Boolean Dim instance As AFSearchTokenCollection Dim item As AFSearchTokenBase Dim returnValue As Boolean returnValue = instance.Contains(item)
public: virtual bool Contains( AFSearchTokenBase^ item ) sealed
abstract Contains : item : AFSearchTokenBase -> bool override Contains : item : AFSearchTokenBase -> bool
Parameters
- item
- Type: OSIsoft.AF.SearchAFSearchTokenBase
The object to locate in the ListT. The value can be null for reference types.
Return Value
Type: Booleantrue if item is found in the ListT; otherwise, false.