AFElement.GetPaths Method (String, IList(AFElement))
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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, IListStringReturns 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.