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

AF SDK Reference

AFSearchToken Structure

  • Last UpdatedNov 18, 2025
  • 6 minute read
AFSearchToken Structure

Note: This API is now obsolete.

Represents one criteria of a search clause for AFSearch based searches.

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

Syntax

[SerializableAttribute]
[ObsoleteAttribute("Use the AFSearchTokenBase derived classes. This structure cannot support Or tokens.")]
public struct AFSearchToken : IEquatable<AFSearchToken>
<SerializableAttribute>
<ObsoleteAttribute("Use the AFSearchTokenBase derived classes. This structure cannot support Or tokens.")>
Public Structure AFSearchToken
	Implements IEquatable(Of AFSearchToken)

Dim instance As AFSearchToken
[SerializableAttribute]
[ObsoleteAttribute(L"Use the AFSearchTokenBase derived classes. This structure cannot support Or tokens.")]
public value class AFSearchToken : IEquatable<AFSearchToken>
[<SealedAttribute>]
[<SerializableAttribute>]
[<ObsoleteAttribute("Use the AFSearchTokenBase derived classes. This structure cannot support Or tokens.")>]
type AFSearchToken =  
    struct
        interface IEquatable<AFSearchToken>
    end

The AFSearchToken type exposes the following members.

Constructors

Properties

  NameDescription
Public property
Filter
The filter to be searched using the specified Operator and Value.
Public property
Operator
The search operator to perform on the search filter with the specified Value.
Public property
Path
The path of an attribute, relative to an element, used when the Filter is Value.
Public property
Tokens
The collection of search tokens to be used for a nested query.
Public property
Value
The value to compare the search filter on using the specified Operator.
Public property
Values
The array of values to compare the search filter on using the specified Operator.
Public property
ValueType
This is the value type of the specified Value.

Methods

  NameDescription
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ValueTypeEquals(Object).)
Public method
Equals(AFSearchToken)
Indicates whether the current object is equal to another object of the same type.
Public method
GetHashCode
Gets the hash code for this instance of the object which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a String that represents the current object.
(Overrides ValueTypeToString.)
Public methodStatic member
ToString(IEnumerableAFSearchToken)
This method will return a String that represents the list of AFSearchToken objects.

Operators

  NameDescription
Public operatorStatic member
Equality
The equality operator (==) compares its operands to determine if they are equal.
Public operatorStatic member
(AFSearchToken to AFSearchTokenBase)
Casts an AFSearchToken as an AFSearchTokenBase.
Public operatorStatic member
Inequality
The inequality operator (!=) compares its operands to determine if they are not equal.

Fields

  NameDescription
Public fieldStatic member
Empty
Represents the empty AFSearchToken.

Remarks

This structure represents the information about a search query token created when parsing a search query. These tokens can be used to perform a search for objects from the server.

The AFSearchFilter and AFSearchOperator topics provide more information about the filters and operators that can be used in a search token.

Version Information

AFSDK

Supported in: 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5
Obsolete (compiler warning) in 3.1.1
Obsolete (compiler warning) in 3.1.0
Obsolete (compiler warning) in 3.0.2
Obsolete (compiler warning) in 3.0.1
Obsolete (compiler warning) in 3.0.0
Obsolete (compiler warning) in 2.10.11
Obsolete (compiler warning) in 2.10.5

See Also

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