OPC Studio User's Guide and Reference
FindStandardNodeId Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAUtilities Class : FindStandardNodeId Method
The name for which the standard node Id should be found.

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

The node Id of a standard node that corresponds to the given name.

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

Finds an OPC-UA node Id of a standard node for a given name.
Syntax
'Declaration
 
Public Shared Function FindStandardNodeId( _
   ByVal name As String, _
   ByRef standardNodeId As UANodeId _
) As Boolean
'Usage
 
Dim name As String
Dim standardNodeId As UANodeId
Dim value As Boolean
 
value = UAUtilities.FindStandardNodeId(name, standardNodeId)
public static bool FindStandardNodeId( 
   string name,
   out UANodeId standardNodeId
)
public:
static bool FindStandardNodeId( 
   String^ name,
   [Out] UANodeId^ standardNodeId
) 

Parameters

name
The name for which the standard node Id should be found.

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

standardNodeId
The node Id of a standard node that corresponds to the given name.

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

Return Value

Returns true if the node Id has been found; 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.

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