QuickOPC User's Guide and Reference
Match Method (NodeDescriptor)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc Namespace > NodeDescriptor Class : Match Method
The node descriptor to match against.
Determines whether the node descriptor matches another node descriptor.
Syntax
'Declaration
 
Public Function Match( _
   ByVal other As NodeDescriptor _
) As Boolean
'Usage
 
Dim instance As NodeDescriptor
Dim other As NodeDescriptor
Dim value As Boolean
 
value = instance.Match(other)
public bool Match( 
   NodeDescriptor other
)
public:
bool Match( 
   NodeDescriptor^ other
) 

Parameters

other
The node descriptor to match against.

Return Value

Returns true if two node descriptors match; otherwise, returns false.
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
Two node descriptors match if any information that is present in both node descriptors is equal. For example, if a node Id in one of the node descriptors is not present (null), a node Id in the other node descriptor can be anything, or also not present. But if a node Id is present in both node descriptors, it must be the same node Id. Same rules apply to the browse path portion of the node descriptor.
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