OPC Studio User's Guide and Reference
EncodeInDataTypeDefinitionModel Method (_UADataTypeSystem)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeModel.ComTypes Namespace > _UADataTypeSystem 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 Object, _
   ByVal genericData As Object, _
   ByVal endpointDescriptor As Object, _
   ByVal serverTables As Object, _
   ByVal fixedLayout As Boolean _
) As ValueResult
'Usage
 
Dim instance As _UADataTypeSystem
Dim dataTypeInfo As Object
Dim genericData As Object
Dim endpointDescriptor As Object
Dim serverTables As Object
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