AFSearchTokenCollection.Remove Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Removes the first occurrence of a specific object from the ListT.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool Remove( AFSearchTokenBase item )
Public Function Remove ( item As AFSearchTokenBase ) As Boolean Dim instance As AFSearchTokenCollection Dim item As AFSearchTokenBase Dim returnValue As Boolean returnValue = instance.Remove(item)
public: virtual bool Remove( AFSearchTokenBase^ item ) sealed
abstract Remove : item : AFSearchTokenBase -> bool override Remove : item : AFSearchTokenBase -> bool
Parameters
- item
- Type: OSIsoft.AF.SearchAFSearchTokenBase
The object to remove from the ListT. The value can be null for reference types.
Return Value
Type: Booleantrue if item is successfully removed; otherwise, false. This method also returns false if item was not found in the ListT.