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

AF SDK Reference

AFSearchExpressionToken Constructor

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSearchExpressionToken Constructor
Creates an AFSearchExpressionToken instance with the TokenCollection specified.

Namespace:  OSIsoft.AF.Search
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public AFSearchExpressionToken(
	AFSearchLogicalOperator logicalOperator,
	IList<AFSearchTokenBase> tokens = null
)
Public Sub New ( 
	logicalOperator As AFSearchLogicalOperator,
	Optional tokens As IList(Of AFSearchTokenBase) = Nothing
)

Dim logicalOperator As AFSearchLogicalOperator
Dim tokens As IList(Of AFSearchTokenBase)

Dim instance As New AFSearchExpressionToken(logicalOperator, 
	tokens)
public:
AFSearchExpressionToken(
	AFSearchLogicalOperator logicalOperator, 
	IList<AFSearchTokenBase^>^ tokens = nullptr
)
new : 
        logicalOperator : AFSearchLogicalOperator * 
        ?tokens : IList<AFSearchTokenBase> 
(* Defaults:
        let _tokens = defaultArg tokens null
*)
-> AFSearchExpressionToken

Parameters

logicalOperator
Type: OSIsoft.AF.SearchAFSearchLogicalOperator
The type of logical operator to apply to the expression.
tokens (Optional)
Type: System.Collections.GenericIListAFSearchTokenBase
The collection of AFSearchTokenBase objects used to initialize the TokenCollection property.

Remarks

This constructor is used to create a logical grouping of other AFSearchTokenBase tokens.

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