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 (String, IList(AFElement))

AFElement.GetPaths Method (String, IList(AFElement))

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.GetPaths Method (String, IList(AFElement))
Get all paths to the child elements.

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

Syntax

public static IDictionary<Guid, IList<string>> GetPaths(
	string relativePath,
	IList<AFElement> children
)
Public Shared Function GetPaths ( 
	relativePath As String,
	children As IList(Of AFElement)
) As IDictionary(Of Guid, IList(Of String))

Dim relativePath As String
Dim children As IList(Of AFElement)
Dim returnValue As IDictionary(Of Guid, IList(Of String))

returnValue = AFElement.GetPaths(relativePath, 
	children)
public:
static IDictionary<Guid, IList<String^>^>^ GetPaths(
	String^ relativePath, 
	IList<AFElement^>^ children
)
static member GetPaths : 
        relativePath : string * 
        children : IList<AFElement> -> IDictionary<Guid, IList<string>> 

Parameters

relativePath
Type: SystemString
The full path in ShortName format to the parent object that the returned paths should be relative. For example, "\\Server1\Database2" would return paths to each child element relative to the database. A path of "\\Server1\Database2\RootElement" would return paths to each child element relative to "RootElement". If , then full paths will be returned to each child element.
children
Type: System.Collections.GenericIListAFElement
The list of child elements whose path should be returned.

Return Value

Type: IDictionaryGuid, IListString
Returns all paths to each child element in the children list in a dictionary where the key is the ID of the child element and the value is a list of the paths to the child element.

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

See Also

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