Skip to content

Reference

OpcDictionary<TKey, TValue> Members

Represents a collection of keys and values which can be used as a data type in OPC UA.

Reference

OpcDictionary<TKey, TValue> Members ​

Type
OpcDictionary<TKey, TValue>
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from Dictionary<TKey, TValue>.

Constructors ​

OpcDictionary ​

Initializes a new instance of the OpcDictionary<TKey, TValue> class that is empty, has the default initial capacity, and uses the default equality comparer for the key type.

csharp
public OpcDictionary()
vbnet
Public Sub New()

Methods ​

RegisterType ​

static · 3 overloads

OverloadDescription
RegisterType()staticRegisters the OpcDictionary<TKey, TValue> using the TKey and TValue to define a non-generic encodable data object type to create in case there a data instance is to be created for the type definition identified by the combination of OpcDictionary<TKey, TValue>, TKey and TValue (on which this method is called) within the namespace index with the number two.
RegisterType(OpcNodeId)staticRegisters the OpcDictionary<TKey, TValue> using the TKey and TValue to define a non-generic encodable data object type to create in case there a data instance is to be created for the type definition identified by the dataTypeId specified.
RegisterType(OpcNodeId, params OpcEncoding[])staticRegisters the OpcDictionary<TKey, TValue> using the TKey and TValue to define a non-generic encodable data object type to create in case there a data instance is to be created for the type definition identified by the dataTypeId or by one of the dataTypeEncodings specified.

RegisterType() ​

static

Registers the OpcDictionary<TKey, TValue> using the TKey and TValue to define a non-generic encodable data object type to create in case there a data instance is to be created for the type definition identified by the combination of OpcDictionary<TKey, TValue>, TKey and TValue (on which this method is called) within the namespace index with the number two. This is e.g. for OpcDictionary<TKey, TValue> with TKey equals int and TValue equals string "ns=2;s=OpcDictionary<Int32, String>". The according encoding information is then used as follows "ns=2;s=OpcDictionary<Int32, String>/Default Binary".

csharp
public static void RegisterType()
vbnet
Public Shared Sub RegisterType()

RegisterType(OpcNodeId) ​

static

Registers the OpcDictionary<TKey, TValue> using the TKey and TValue to define a non-generic encodable data object type to create in case there a data instance is to be created for the type definition identified by the dataTypeId specified.

csharp
public static void RegisterType(OpcNodeId dataTypeId)
vbnet
Public Shared Sub RegisterType(dataTypeId As OpcNodeId)

Parameters

NameTypeDescription
dataTypeIdOpcNodeIdThe identifier of the type definition for which the OpcDictionary<TKey, TValue> is to be used to create a data object instance.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe dataTypeId is a null reference (Nothing in Visual Basic).

RegisterType(OpcNodeId, params OpcEncoding[]) ​

static

Registers the OpcDictionary<TKey, TValue> using the TKey and TValue to define a non-generic encodable data object type to create in case there a data instance is to be created for the type definition identified by the dataTypeId or by one of the dataTypeEncodings specified.

csharp
public static void RegisterType(
    OpcNodeId dataTypeId,
    params OpcEncoding[] dataTypeEncodings)
vbnet
Public Shared Sub RegisterType(
    dataTypeId As OpcNodeId,
    ParamArray dataTypeEncodings As OpcEncoding())

Parameters

NameTypeDescription
dataTypeIdOpcNodeIdThe identifier of the type definition for which the OpcDictionary<TKey, TValue> is to be used to create a data object instance.
dataTypeEncodingsparams OpcEncoding[]An array of OpcEncoding instances identifying the different encodings supported by the OpcDictionary<TKey, TValue> specified. Using OpcEncoding instances enables the possibility to define OpcEncodingType specific identifiers to use to identify the according encoding information required to encode or decode the data object information.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe dataTypeId or dataTypeEncodings or one of its items is a null reference (Nothing in Visual Basic).