OPC Studio User's Guide and Reference
MakePathElements<TElement> Method (NodeElement)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc Namespace > NodeElement Class : MakePathElements<TElement> Method
The browse names that represent the path to be created.

The value of this parameter cannot be null (Nothing in Visual Basic).

Creates a path containing NodeElement-s made from browse names, starting from the root.
Syntax
'Declaration
 
<IteratorStateMachineAttribute(OpcLabs.EasyOpc.NodeElement/d__14`1)> 
<NotNullAttribute()> 
Protected Shared Function MakePathElements(Of TElement As {New, NodeElement})( _ 
   ByVal browseNames As IEnumerable(Of String) _ 
) As IEnumerable(Of TElement)
'Usage
 
Dim browseNames As IEnumerable(Of String)
Dim value As IEnumerable(Of TElement)
 
value = NodeElement.MakePathElements(Of TElement)(browseNames)
[IteratorStateMachine(OpcLabs.EasyOpc.NodeElement/d__14`1)] 
[NotNull()] 
protected static IEnumerable<TElement> MakePathElements<TElement>( 
   IEnumerable<string> browseNames 
) 
where TElement: new(), NodeElement
[IteratorStateMachine(OpcLabs.EasyOpc.NodeElement/d__14`1)] 
[NotNull()] 
protected: 
static IEnumerable<TElement^>^ MakePathElementsgeneric<typename TElement> 
( 
   IEnumerable<String^>^ browseNames 
) 
where TElement: gcnew(), NodeElement

Parameters

browseNames
The browse names that represent the path to be created.

The value of this parameter cannot be null (Nothing in Visual Basic).

Type Parameters

TElement

Return Value

An "enumerable" of node elements, starting from the root.

This method never returns null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also