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

AF SDK Reference

AFElement.GetPaths Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.GetPaths Method
Get all the full paths to this AFElement.

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

Syntax

public string[] GetPaths()
Public Function GetPaths As String()

Dim instance As AFElement
Dim returnValue As String()

returnValue = instance.GetPaths()
public:
array<String^>^ GetPaths()
member GetPaths : unit -> string[] 

Return Value

Type: String
Returns all the full paths to this AFElement.

Remarks

This method will return all the paths to the AFElement where the GetPath Overload method will return the single primary path.

When connected to a 2015 (2.7) or later server, all the paths are returned in one bulk call from the server. In older servers, this method could be an expensive operation because the paths have to be computed in the client and could require at least one call to the server for each parent if they were not previously loaded.

Version Information

AFSDK


See Also

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