AFSearchToken Constructor (AFSearchOperator, String, String, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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.