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

AF SDK Reference

AFSearchToken Constructor (AFSearchFilter, AFSearchOperator, String[], String)

AFSearchToken Constructor (AFSearchFilter, AFSearchOperator, String[], String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSearchToken Constructor (AFSearchFilter, AFSearchOperator, String[], String)
Creates an AFSearchToken instance for the Filter, Operator, Values, and Path specified.

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

Syntax

public AFSearchToken(
	AFSearchFilter filter,
	AFSearchOperator searchOperator,
	string[] values,
	string path
)
Public Sub New ( 
	filter As AFSearchFilter,
	searchOperator As AFSearchOperator,
	values As String(),
	path As String
)

Dim filter As AFSearchFilter
Dim searchOperator As AFSearchOperator
Dim values As String()
Dim path As String

Dim instance As New AFSearchToken(filter, 
	searchOperator, values, path)
public:
AFSearchToken(
	AFSearchFilter filter, 
	AFSearchOperator searchOperator, 
	array<String^>^ values, 
	String^ path
)
new : 
        filter : AFSearchFilter * 
        searchOperator : AFSearchOperator * 
        values : string[] * 
        path : string -> AFSearchToken

Parameters

filter
Type: OSIsoft.AF.SearchAFSearchFilter
The filter used to initialize the Filter property.
searchOperator
Type: OSIsoft.AF.SearchAFSearchOperator
The search operator used to initialize the Operator property. Currently, only the In operator is allowed.
values
Type: SystemString
The array of search values used to initialize the Values property.
path
Type: SystemString
The path used for the query when the filter is Value. For all other filters, this parameter is ignored.

Remarks

This constructor is used to create a search token with an array of values. Currently, only the Value filter with the In operator is supports an array of values.

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, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in