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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Navigation Namespace > UABrowsePath Class : Flatten Method
Computes an equivalent browse path whose starting node descriptor has a node Id, if possible.
Syntax
'Declaration
 
<PureAttribute()>
Public Function Flatten() As UABrowsePath
'Usage
 
Dim instance As UABrowsePath
Dim value As UABrowsePath
 
value = instance.Flatten()
[Pure()]
public UABrowsePath Flatten()
[Pure()]
public:
UABrowsePath^ Flatten(); 

Return Value

Returns an equivalent browse path whose starting node descriptor has a node Id, if possible.

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 never returns null (Nothing in Visual Basic).

Remarks

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

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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