Skip to content

Reference

OpcClient.GetDataTypeSystem Method

Retrieves the system used to describe the data exchanged via OPC UA using the type of encoding configured by the client and supported by the endpdoint of the server connected to.

Reference

OpcClient.GetDataTypeSystem Method ​

Type
OpcClient
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcClient Members
Also in
Opc.UaFx.Client

since v2.8

Retrieves the system used to describe the data exchanged via OPC UA using the type of encoding configured by the client and supported by the endpdoint of the server connected to.

csharp
public OpcDataTypeSystem GetDataTypeSystem()
vbnet
Public Function GetDataTypeSystem() As OpcDataTypeSystem

Returns

OpcDataTypeSystem

An instance of the OpcDataTypeSystem class which can be used to understand the structure of the data exchanged using a specific type of encoding (see OpcEncodingType).

Exceptions

ExceptionCondition
InvalidOperationExceptionThe requested operation is currently not supported.
LicenseExceptionThe license is expired.
ObjectDisposedExceptionThe object has been disposed of.
OpcExceptionThe service execution failed upon different circumstances; for more details see exception details.

Remarks

Querying the data type system may fail in case there MaxByteStringLength and MaxMessageSize are exceeded. The transport configuration needs to be adjusted to query larger type systems.

The OpcDataTypeSystem offered represents by default the data type system defined in address space of the server and its data type information is queried on-demand using different request operations. This "overhead" can be overcome using an offline stored OpcNodeSet which needs to be loaded and assigned to the NodeSet property of the current OpcClient.

In case there NodeSet property has been set to an instance of the OpcNodeSet class the offered OpcDataTypeSystem expresses the data type information contained in the NodeSet configured.