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

AF SDK Reference

AFPathToken Constructor (String, Nullable(Int32), Boolean)

AFPathToken Constructor (String, Nullable(Int32), Boolean)

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFPathToken Constructor (String, Nullable(Int32), Boolean)
Creates an AFPathToken instance representing a PIPoint.

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

Syntax

public AFPathToken(
	string name,
	int? pointID = null,
	bool nameIsPreferred = false
)
Public Sub New ( 
	name As String,
	Optional pointID As Integer? = Nothing,
	Optional nameIsPreferred As Boolean = false
)

Dim name As String
Dim pointID As Integer?
Dim nameIsPreferred As Boolean

Dim instance As New AFPathToken(name, pointID, 
	nameIsPreferred)
public:
AFPathToken(
	String^ name, 
	Nullable<int> pointID = nullptr, 
	bool nameIsPreferred = false
)
new : 
        name : string * 
        ?pointID : Nullable<int> * 
        ?nameIsPreferred : bool 
(* Defaults:
        let _pointID = defaultArg pointID null
        let _nameIsPreferred = defaultArg nameIsPreferred false
*)
-> AFPathToken

Parameters

name
Type: SystemString
The name that identifies the desired PIPoint.
pointID (Optional)
Type: SystemNullableInt32
The unique identifier for the desired PIPoint.
nameIsPreferred (Optional)
Type: SystemBoolean
Indicates whether the Name or PointID is preferred when searching for the object.

Remarks

This constructor will initialize all the fields with the values specified as parameters to represent a PIPoint.

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