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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeModel Namespace > IUADataTypeSystem Interface : Decode Method
Identifies an OPC UA data type together with its data type dictionary.
An extension object body to be decoded.
Decodes an extension object body according to given data type descriptor.
Syntax
'Declaration
 
<NotNullAttribute()>
Function Decode( _
   ByVal dataTypeDescriptor As UADataTypeDescriptor, _
   ByVal extensionObjectBody As Object _
) As ValueResult(Of GenericData)
'Usage
 
Dim instance As IUADataTypeSystem
Dim dataTypeDescriptor As UADataTypeDescriptor
Dim extensionObjectBody As Object
Dim value As ValueResult(Of GenericData)
 
value = instance.Decode(dataTypeDescriptor, extensionObjectBody)

Parameters

dataTypeDescriptor
Identifies an OPC UA data type together with its data type dictionary.
extensionObjectBody
An extension object body to be decoded.

Return Value

A value result: A success with the decoded generic data, 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 7 with SP1, Windows Server 2012; .NET Core: Linux, Microsoft Windows

See Also

Reference

IUADataTypeSystem Interface
IUADataTypeSystem Members