AFPathToken Structure
- Last UpdatedNov 18, 2025
- 5 minute read
- PI System
- AF SDK 2024 R2
- Developer
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
| Name | Description | |
|---|---|---|
| AFPathToken(String, NullableInt32, Boolean) |
Creates an AFPathToken instance representing a PIPoint.
| |
| AFPathToken(AFIdentity, AFPathFilterType, String, Int32) |
Creates an AFPathToken instance with an AFPathFilter.
| |
| AFPathToken(AFIdentity, String, NullableGuid, Boolean, Boolean) |
Creates an AFPathToken instance representing an AFObject.
|
Properties
| Name | Description | |
|---|---|---|
| AttributeIsPreferred |
Indicates if an AFAttribute is the preferred returned object.
| |
| Filters |
The list of path filters to be used when searching for the object.
| |
| HasPointID | ||
| ID |
The unique identifier for the desired object.
| |
| Identity |
The AFIdentity of the desired object.
| |
| Name |
The name that identifies the desired object.
| |
| NameIsPreferred | ||
| NeedsToBeSorted |
Indicates if the list of found objects needs to be sorted before applying
the Filters.
| |
| PointID |
Methods
| Name | Description | |
|---|---|---|
| AddFilter |
Add a filter to the token's list of Filters.
| |
| Equals(Object) |
Determines whether the specified Object is equal to the current object.
(Overrides ValueTypeEquals(Object).) | |
| Equals(AFPathToken) |
Indicates whether the current object is equal to another object of the same type.
| |
| 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.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ParsePath |
Parses the specified path to an object into path tokens.
| |
| ToString |
Returns a String that represents the current object.
(Overrides ValueTypeToString.) |
Operators
| Name | Description | |
|---|---|---|
| Equality |
The equality operator (==) compares its operands to determine if they are equal.
| |
| 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.