OPC Studio 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.

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

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.

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

Return Value

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

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

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.

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