OPC Studio User's Guide and Reference
Add Method (UANodeDescriptor)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UANodeDescriptor Class : Add Method
The node descriptor object.
The browse path element.
Adds a browse path element to a node descriptor.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function Add( _
   ByVal nodeDescriptor As UANodeDescriptor, _
   ByVal browsePathElement As UABrowsePathElement _
) As UANodeDescriptor
'Usage
 
Dim nodeDescriptor As UANodeDescriptor
Dim browsePathElement As UABrowsePathElement
Dim value As UANodeDescriptor
 
value = UANodeDescriptor.Add(nodeDescriptor, browsePathElement)

Parameters

nodeDescriptor
The node descriptor object.
browsePathElement
The browse path element.

Return Value

Returns a node descriptor made by adding a browsing path element to the original node descriptor.
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

The resulting node descriptor always contains a browse path, and no node ID. The new browse path is constructed by adding the browse path element to the old browse path, if the original node descriptor contained only the browse path. In all other cases, the new browse path is constructed by adding the browse path element to the old node ID.

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