Click or drag to resize
OSIsoft, LLC

AFPathTokenParsePath Method

Parses the specified path to an object into path tokens.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public static IList<AFPathToken> ParsePath(
	string path,
	AFObject relativeFrom = null,
	bool allowDynamic = false,
	AFIdentity preferredIdentity = AFIdentity.Attribute


Type: SystemString
A string containing a pathname that is relative to the specified object, or a fully qualified path. See Path Syntax for more information.
relativeFrom (Optional)
Type: OSIsoft.AFAFObject
The relative object associated with the specified path. This object will not be used if the full path is specified.
allowDynamic (Optional)
Type: SystemBoolean
Specify to check for dynamic PIPoint path or to not generate an error if the format of the path looks like it could be a dynamic attribute.
preferredIdentity (Optional)
Type: OSIsoft.AFAFIdentity
The identity of the preferred object to be found by the path. The default is Attribute. You should specify PIPoint if the path represents a path to a PIPoint.

Return Value

Type: IListAFPathToken
Returns a list of path tokens representing the parts of the parsed path.
Version Information


Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6
See Also
Enabling Operational Intelligence