QuickOPC User's Guide and Reference
EncodeInDataTypeDictionaryModel Method (_UADataTypeSystem)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeModel.ComTypes Namespace > _UADataTypeSystem Interface : EncodeInDataTypeDictionaryModel Method
Identifies an OPC UA data type together with its data type dictionary.
The generic data to be encoded.
In DataTypeDictionary model, encodes generic data according to given data type descriptor.
Syntax
'Declaration
 
<NotNullAttribute()>
Function EncodeInDataTypeDictionaryModel( _
   ByVal dataTypeDescriptor As Object, _
   ByVal genericData As Object _
) As ValueResult
'Usage
 
Dim instance As _UADataTypeSystem
Dim dataTypeDescriptor As Object
Dim genericData As Object
Dim value As ValueResult
 
value = instance.EncodeInDataTypeDictionaryModel(dataTypeDescriptor, genericData)
[NotNull()]
ValueResult EncodeInDataTypeDictionaryModel( 
   object dataTypeDescriptor,
   object genericData
)
[NotNull()]
ValueResult^ EncodeInDataTypeDictionaryModel( 
   Object^ dataTypeDescriptor,
   Object^ genericData
) 

Parameters

dataTypeDescriptor
Identifies an OPC UA data type together with its data type dictionary.
genericData
The generic data to be encoded.

Return Value

A value result: A success with the encoded extension object body, or a failure.
Remarks

The data type dictionary in the data type descriptor dataTypeDescriptor must refer to a dictionary that is known in the data type system (either intrinsically, by configuration, or added through the AddDataTypeDictionary method). The data type description in the dataTypeDescriptor must be valid and exist in the data type dictionary.

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