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, Value, and optionally 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 value,
	string path = null
)
Public Sub New ( 
	filter As AFSearchFilter,
	searchOperator As AFSearchOperator,
	value As String,
	Optional path As String = Nothing
)

Dim filter As AFSearchFilter
Dim searchOperator As AFSearchOperator
Dim value As String
Dim path As String

Dim instance As New AFSearchToken(filter, 
	searchOperator, value, path)
public:
AFSearchToken(
	AFSearchFilter filter, 
	AFSearchOperator searchOperator, 
	String^ value, 
	String^ path = nullptr
)
new : 
        filter : AFSearchFilter * 
        searchOperator : AFSearchOperator * 
        value : string * 
        ?path : string 
(* Defaults:
        let _path = defaultArg path null
*)
-> 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.
value
Type: SystemString
The search value used to initialize the Value property.
path (Optional)
Type: SystemString
The path of an attribute, relative to an element, 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 values for the Filter, Operator, Value, and optionally the Path properties specified.

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, 2.7.5

See Also

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