AFSearchToken Constructor (AFSearchFilter, AFSearchOperator, String, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSearchToken( AFSearchFilter filter, AFSearchOperator searchOperator, string value, string path = null )
Public Sub New ( filter As AFSearchFilter, searchOperator As AFSearchOperator, value As String, Optional path As String = Nothing ) Dim filter As AFSearchFilter Dim searchOperator As AFSearchOperator Dim value As String Dim path As String Dim instance As New AFSearchToken(filter, searchOperator, value, path)
public: AFSearchToken( AFSearchFilter filter, AFSearchOperator searchOperator, String^ value, String^ path = nullptr )
new : filter : AFSearchFilter * searchOperator : AFSearchOperator * value : string * ?path : string (* Defaults: let _path = defaultArg path null *) -> AFSearchToken
Parameters
- filter
- Type: OSIsoft.AF.SearchAFSearchFilter
The filter used to initialize the Filter property. - 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 (Optional)
- Type: SystemString
The path of an attribute, relative to an element, used for the query when the filter is Value. For all other filters, this parameter is ignored.
Remarks
This constructor is used to create a search token with values for the Filter,
Operator, Value, and optionally the Path properties
specified.