OPC Studio User's Guide and Reference
FromEnumerable Method (UABrowsePath)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Navigation Namespace > UABrowsePath Class : FromEnumerable Method
Sequence of browse path elements, starting from the root.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Converts a sequence of browse path elements into am OPC-UA browse path object.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<PureAttribute()>
Public Shared Function FromEnumerable( _
   ByVal enumerable As IEnumerable(Of UABrowsePathElement) _
) As UABrowsePath
'Usage
 
Dim enumerable As IEnumerable(Of UABrowsePathElement)
Dim value As UABrowsePath
 
value = UABrowsePath.FromEnumerable(enumerable)
[CanBeNull()]
[Pure()]
public static UABrowsePath FromEnumerable( 
   IEnumerable<UABrowsePathElement> enumerable
)
[CanBeNull()]
[Pure()]
public:
static UABrowsePath^ FromEnumerable( 
   IEnumerable<UABrowsePathElement^>^ enumerable
) 

Parameters

enumerable
Sequence of browse path elements, starting from the root.

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

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Return Value

Returns null when the input is null. Otherwise, returns the OPC-UA browse path object made from the sequence of browse path elements.

Because there is an implicit conversion from UABrowsePath to OpcLabs.EasyOpc.UA.UANodeDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use the returned UABrowsePath in any place where the OpcLabs.EasyOpc.UA.UANodeDescriptor is expected as input, and the corresponding node descriptor will be constructed automatically.

This method can return null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

This method is pure, i.e. it does not have observable side effects.

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