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

AF SDK Reference

AFSearchToken Constructor (AFSearchOperator, String, String, String)

AFSearchToken Constructor (AFSearchOperator, String, String, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSearchToken Constructor (AFSearchOperator, String, String, String)
Creates an AFSearchToken instance with the Operator, Value, Path, and ValueType specified. The Filter will be set to Value.

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

Syntax

public AFSearchToken(
	AFSearchOperator searchOperator,
	string value,
	string path,
	string valueType
)
Public Sub New ( 
	searchOperator As AFSearchOperator,
	value As String,
	path As String,
	valueType As String
)

Dim searchOperator As AFSearchOperator
Dim value As String
Dim path As String
Dim valueType As String

Dim instance As New AFSearchToken(searchOperator, 
	value, path, valueType)
public:
AFSearchToken(
	AFSearchOperator searchOperator, 
	String^ value, 
	String^ path, 
	String^ valueType
)
new : 
        searchOperator : AFSearchOperator * 
        value : string * 
        path : string * 
        valueType : string -> AFSearchToken

Parameters

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
Type: SystemString
The path, relative to an element, of the AFAttribute value that will be queried.
valueType
Type: SystemString
The type of values to use in the value query. It can be any value of the AFSearchValueType enumeration, except for EnumerationSet. In this case, it must be the name of the AFEnumerationSet that the value represents.

Remarks

This constructor is used to create a search token with values for the Operator, Value, Path, and ValueType properties specified. The Filter will be set to Value.

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

See Also

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