OPC Studio User's Guide and Reference
NodesEqual Method (UANodeElement)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.AddressSpace Namespace > UANodeElement Class : NodesEqual Method
First object to be compared.

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

Second object to be compared.

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

Tests whether the two node elements are for the same nodes.
Syntax
'Declaration
 
Public Shared Function NodesEqual( _
   ByVal first As UANodeElement, _
   ByVal second As UANodeElement _
) As Boolean
'Usage
 
Dim first As UANodeElement
Dim second As UANodeElement
Dim value As Boolean
 
value = UANodeElement.NodesEqual(first, second)
public static bool NodesEqual( 
   UANodeElement first,
   UANodeElement second
)
public:
static bool NodesEqual( 
   UANodeElement^ first,
   UANodeElement^ second
) 

Parameters

first
First object to be compared.

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

second
Second object to be compared.

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

Return Value

True if the node elements are for the same nodes; false otherwise.
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 is a weaker test than Equals(Object) or Equals(UANodeElement). This method only compares the node IDs.

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