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

AF SDK Reference

AFSearchValueToken Constructor (String, String[], AFSearchValueType, String)

AFSearchValueToken Constructor (String, String[], AFSearchValueType, String)

  • Last UpdatedNov 18, 2025
  • 3 minute read
AFSearchValueToken Constructor (String, String[], AFSearchValueType, String)
Creates an AFSearchValueToken instance for the Path and Values. Optionally, the Operator, ValueType, and ValueTypeQualifier may be set.

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

Syntax

public AFSearchValueToken(
	string path,
	string[] values,
	AFSearchValueType valueType = AFSearchValueType.None,
	string valueTypeQualifier = null
)
Public Sub New ( 
	path As String,
	values As String(),
	Optional valueType As AFSearchValueType = AFSearchValueType.None,
	Optional valueTypeQualifier As String = Nothing
)

Dim path As String
Dim values As String()
Dim valueType As AFSearchValueType
Dim valueTypeQualifier As String

Dim instance As New AFSearchValueToken(path, values, 
	valueType, valueTypeQualifier)
public:
AFSearchValueToken(
	String^ path, 
	array<String^>^ values, 
	AFSearchValueType valueType = AFSearchValueType::None, 
	String^ valueTypeQualifier = nullptr
)
new : 
        path : string * 
        values : string[] * 
        ?valueType : AFSearchValueType * 
        ?valueTypeQualifier : string 
(* Defaults:
        let _valueType = defaultArg valueType AFSearchValueType.None
        let _valueTypeQualifier = defaultArg valueTypeQualifier null
*)
-> AFSearchValueToken

Parameters

path
Type: SystemString
The path of an attribute, relative to an element.
values
Type: SystemString
The search values used to initialize the Values property.
valueType (Optional)
Type: OSIsoft.AF.SearchAFSearchValueType
The AFSearchValueType of values to use in the value query. If set to EnumerationSet, valueTypeQualifier must be set to the Name of an AFEnumerationSet.
valueTypeQualifier (Optional)
Type: SystemString
The Name of an AFEnumerationSet if valueType is set to EnumerationSet. Otherwise, this parameter will be ignored.

Remarks

This constructor is used to create a search token with values for the AFSearchValueToken instance for the Path and Value. The Filter will be set to Value. The Operator will be set to the In operator. The ValueType will be set to None unless specified. The ValueTypeQualifier will be set to Empty unless specified and must be set if ValueType is set to EnumerationSet.

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

See Also

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