AFSearchToken Constructor (String[], String, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates an AFSearchToken instance with the Values,
Path, and ValueType specified.
The Filter will be set to Value and
the Operator will be set to In.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSearchToken( string[] values, string path, string valueType )
Public Sub New ( values As String(), path As String, valueType As String ) Dim values As String() Dim path As String Dim valueType As String Dim instance As New AFSearchToken(values, path, valueType)
public: AFSearchToken( array<String^>^ values, String^ path, String^ valueType )
new : values : string[] * path : string * valueType : string -> AFSearchToken
Parameters
- values
- Type: SystemString
The array of search values used to initialize the Values property. - path
- Type: SystemString
The path 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 an Value search token with
an array of values.