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

AF SDK Reference

AFSearchQueryToken Constructor

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSearchQueryToken Constructor
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.

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