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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeModel Namespace > IUADataTypeSystem Interface : EncodeInDataTypeDefinitionModel Method
Information about an OPC UA data type.
The generic data to be encoded.
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, encodes generic data according to given data type info.
Syntax
'Declaration
 
<NotNullAttribute()>
Function EncodeInDataTypeDefinitionModel( _
   ByVal dataTypeInfo As UADataTypeInfo, _
   ByVal genericData As GenericData, _
   ByVal endpointDescriptor As UAEndpointDescriptor, _
   ByVal serverTables As IUAServerTables, _
   ByVal fixedLayout As Boolean _
) As ValueResult
'Usage
 
Dim instance As IUADataTypeSystem
Dim dataTypeInfo As UADataTypeInfo
Dim genericData As GenericData
Dim endpointDescriptor As UAEndpointDescriptor
Dim serverTables As IUAServerTables
Dim fixedLayout As Boolean
Dim value As ValueResult
 
value = instance.EncodeInDataTypeDefinitionModel(dataTypeInfo, genericData, endpointDescriptor, serverTables, fixedLayout)

Parameters

dataTypeInfo
Information about an OPC UA data type.
genericData
The generic data to be encoded.
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 encoded object body, 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