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

AF SDK Reference

AFPathToken Constructor (AFIdentity, AFPathFilterType, String, Int32)

AFPathToken Constructor (AFIdentity, AFPathFilterType, String, Int32)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFPathToken Constructor (AFIdentity, AFPathFilterType, String, Int32)
Creates an AFPathToken instance with an AFPathFilter.

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

Syntax

public AFPathToken(
	AFIdentity identity,
	AFPathFilterType type,
	string expression = null,
	int index = -1
)
Public Sub New ( 
	identity As AFIdentity,
	type As AFPathFilterType,
	Optional expression As String = Nothing,
	Optional index As Integer = -1
)

Dim identity As AFIdentity
Dim type As AFPathFilterType
Dim expression As String
Dim index As Integer

Dim instance As New AFPathToken(identity, 
	type, expression, index)
public:
AFPathToken(
	AFIdentity identity, 
	AFPathFilterType type, 
	String^ expression = nullptr, 
	int index = -1
)
new : 
        identity : AFIdentity * 
        type : AFPathFilterType * 
        ?expression : string * 
        ?index : int 
(* Defaults:
        let _expression = defaultArg expression null
        let _index = defaultArg index -1
*)
-> AFPathToken

Parameters

identity
Type: OSIsoft.AFAFIdentity
The AFIdentity of the desired object.
type
Type: OSIsoft.AFAFPathFilterType
The type for the first filter.
expression (Optional)
Type: SystemString
The expression for the first filter.
index (Optional)
Type: SystemInt32
The index of the desired object within the collection. The index will be ignored for the default value of -1. When the index is greater than or equal to zero, it is the index from the beginning of the collection. When the index less than -1, it is the index from the end of the collection (e.g. -2 would be the last item in the collection, -3 is second-to-last item in the collection).

Remarks

This constructor will initialize all the fields with an AFPathFilter. Additional filters can be added using the AddFilter(AFPathFilterType, String, Int32) method.

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

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