QuickOPC User's Guide and Reference
FromEnumerable Method (BrowsePath)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Navigation Namespace > BrowsePath Class : FromEnumerable Method
Sequence of browse names, starting from the root.
Converts a sequence of browse names into a browse path object.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<PureAttribute()>
Public Shared Function FromEnumerable( _
   ByVal enumerable As IEnumerable(Of String) _
) As BrowsePath
'Usage
 
Dim enumerable As IEnumerable(Of String)
Dim value As BrowsePath
 
value = BrowsePath.FromEnumerable(enumerable)
[CanBeNull()]
[Pure()]
public static BrowsePath FromEnumerable( 
   IEnumerable<string> enumerable
)
[CanBeNull()]
[Pure()]
public:
static BrowsePath^ FromEnumerable( 
   IEnumerable<String^>^ enumerable
) 

Parameters

enumerable
Sequence of browse names, starting from the root.

Return Value

Returns null when the input is null. Otherwise, returns the browse path object made from the sequence of browse names.
Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

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.

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