AFSearchToken Constructor (AFSearchFilter, String, String)
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates an AFSearchToken instance for the Filter,
Equal operator, Value,
and optionally Path specified.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSearchToken( AFSearchFilter filter, string value, string path = null )
Public Sub New ( filter As AFSearchFilter, value As String, Optional path As String = Nothing ) Dim filter As AFSearchFilter Dim value As String Dim path As String Dim instance As New AFSearchToken(filter, value, path)
public: AFSearchToken( AFSearchFilter filter, String^ value, String^ path = nullptr )
new : filter : AFSearchFilter * 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. - 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,
Value, and optionally the Path properties specified.
The Operator will be set to the Equal
operator.