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

AF SDK Reference

AFPathToken Structure

  • Last UpdatedNov 18, 2025
  • 5 minute read
AFPathToken Structure
Represents a path token from parsing an object path.

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

Syntax

[SerializableAttribute]
public struct AFPathToken : IEquatable<AFPathToken>
<SerializableAttribute>
Public Structure AFPathToken
	Implements IEquatable(Of AFPathToken)

Dim instance As AFPathToken
[SerializableAttribute]
public value class AFPathToken : IEquatable<AFPathToken>
[<SealedAttribute>]
[<SerializableAttribute>]
type AFPathToken =  
    struct
        interface IEquatable<AFPathToken>
    end

The AFPathToken type exposes the following members.

Constructors

Properties

  NameDescription
Public property
AttributeIsPreferred
Indicates if an AFAttribute is the preferred returned object.
Public property
Filters
The list of path filters to be used when searching for the object.
Public property
HasPointID
Indicates if the PointID has a value. Only valid if Identity is PIPoint.
Public property
ID
The unique identifier for the desired object.
Public property
Identity
The AFIdentity of the desired object.
Public property
Name
The name that identifies the desired object.
Public property
NameIsPreferred
Indicates whether the Name or ID is preferred when searching for the object.
Public property
NeedsToBeSorted
Indicates if the list of found objects needs to be sorted before applying the Filters.
Public property
PointID
The unique identifier for the desired PIPoint. Only valid if Identity is PIPoint.

Methods

  NameDescription
Public method
AddFilter
Add a filter to the token's list of Filters.
Public method
Equals(Object)
Determines whether the specified Object is equal to the current object.
(Overrides ValueTypeEquals(Object).)
Public method
Equals(AFPathToken)
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 methodStatic member
ParsePath
Parses the specified path to an object into path tokens.
Public method
ToString
Returns a String that represents the current object.
(Overrides ValueTypeToString.)

Operators

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

Remarks

This structure represents the information about a path token created when parsing the path to an object.

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, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

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