AFSearchQueryToken Constructor
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates a nested AFSearchQueryToken instance for the Filter.
Optionally, the initial TokenCollection may be set.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSearchQueryToken( AFSearchFilter filter, IList<AFSearchTokenBase> tokens = null )
Public Sub New ( filter As AFSearchFilter, Optional tokens As IList(Of AFSearchTokenBase) = Nothing ) Dim filter As AFSearchFilter Dim tokens As IList(Of AFSearchTokenBase) Dim instance As New AFSearchQueryToken(filter, tokens)
public: AFSearchQueryToken( AFSearchFilter filter, IList<AFSearchTokenBase^>^ tokens = nullptr )
new : filter : AFSearchFilter * ?tokens : IList<AFSearchTokenBase> (* Defaults: let _tokens = defaultArg tokens null *) -> AFSearchQueryToken
Parameters
- filter
- Type: OSIsoft.AF.SearchAFSearchFilter
The filter used to initialize the Filter property. - tokens (Optional)
- Type: System.Collections.GenericIListAFSearchTokenBase
Initial collection of AFSearchTokenBase objects for the query.
Remarks
This constructor is used to create a nested query token with child tokens in the TokenCollection
property.