QuickOPC User's Guide and Reference
FindDataType Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAType Class : FindDataType Method
The OPC-UA data type ID. The NodeId of the DataType definition.
The .NET data type that corresponds to the given data type ID.
Finds a .NET data type for a given OPC-UA data type ID.
Syntax
'Declaration
 
Public Shared Function FindDataType( _
   ByVal dataTypeId As UANodeId, _
   ByRef dataType As Type _
) As Boolean
'Usage
 
Dim dataTypeId As UANodeId
Dim dataType As Type
Dim value As Boolean
 
value = UAType.FindDataType(dataTypeId, dataType)
public static bool FindDataType( 
   UANodeId dataTypeId,
   out Type dataType
)
public:
static bool FindDataType( 
   UANodeId^ dataTypeId,
   [Out] Type^ dataType
) 

Parameters

dataTypeId
The OPC-UA data type ID. The NodeId of the DataType definition.
dataType
The .NET data type that corresponds to the given data type ID.

Return Value

true if the .NET data type has been found for given OPC-UA data type ID; false otherwise.
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