QuickOPC User's Guide and Reference
DecodeInDataTypeDefinitionModel Method (IUADataTypeSystem)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeModel Namespace > IUADataTypeSystem Interface : DecodeInDataTypeDefinitionModel Method
Information about an OPC UA data type.
An object body to be decoded.
Endpoint descriptor of the OPC UA server where the data resides.
Provides access to OPC UA server tables.
Determines whether the encoding layout is fixed.
In DataTypeDefinition model, decodes an object body according to given data type info.
Syntax
'Declaration
 
<NotNullAttribute()>
Function DecodeInDataTypeDefinitionModel( _
   ByVal dataTypeInfo As UADataTypeInfo, _
   ByVal objectBody As Object, _
   ByVal endpointDescriptor As UAEndpointDescriptor, _
   ByVal serverTables As IUAServerTables, _
   ByVal fixedLayout As Boolean _
) As ValueResult(Of GenericData)
'Usage
 
Dim instance As IUADataTypeSystem
Dim dataTypeInfo As UADataTypeInfo
Dim objectBody As Object
Dim endpointDescriptor As UAEndpointDescriptor
Dim serverTables As IUAServerTables
Dim fixedLayout As Boolean
Dim value As ValueResult(Of GenericData)
 
value = instance.DecodeInDataTypeDefinitionModel(dataTypeInfo, objectBody, endpointDescriptor, serverTables, fixedLayout)

Parameters

dataTypeInfo
Information about an OPC UA data type.
objectBody
An object body to be decoded.
endpointDescriptor
Endpoint descriptor of the OPC UA server where the data resides.
serverTables
Provides access to OPC UA server tables.
fixedLayout
Determines whether the encoding layout is fixed.

Return Value

A value result: A success with the decoded generic data, or a failure.
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