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

AF SDK Reference

AFSearchToken Constructor (String[], String, String)

AFSearchToken Constructor (String[], String, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSearchToken Constructor (String[], String, String)
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.

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