AFSearchQueryToken.TokenCollection Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
The collection of AFSearchTokenBase to be used for a nested query.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSearchTokenCollection TokenCollection { get; }
Public ReadOnly Property TokenCollection As AFSearchTokenCollection Get Dim instance As AFSearchQueryToken Dim value As AFSearchTokenCollection value = instance.TokenCollection
public: virtual property AFSearchTokenCollection^ TokenCollection { AFSearchTokenCollection^ get () sealed; }
abstract TokenCollection : AFSearchTokenCollection with get override TokenCollection : AFSearchTokenCollection with get
Property Value
Type: AFSearchTokenCollection
Remarks
This is the collection of AFSearchTokenBase to be used for a nested query.
In the query string 'Element:{ Name:"Tank01" Category:"Storage Tank" }', the filter would be Element and the Tokens collection would contain two tokens: Name with a value of 'Tank01' and Category with a value of 'Storage Tank'.