Skip to content

Reference

OpcDictionary<TKey, TValue> Class

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

Reference

OpcDictionary<TKey, TValue> Class ​

since v2.9

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

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

Syntax ​

csharp
[OpcDataTypeMembers(OpcMemberOrigins.Field | OpcMemberOrigins.Explicit | OpcMemberOrigins.Private)]
public sealed class OpcDictionary<TKey, TValue> : Dictionary<TKey, TValue>
vbnet
<OpcDataTypeMembers(OpcMemberOrigins.Field Or OpcMemberOrigins.Explicit Or OpcMemberOrigins.Private)>
Public NotInheritable Class OpcDictionary(Of TKey, TValue)
    Inherits Dictionary(Of TKey, TValue)

Type parameters ​

NameDescription
TKeyThe type of the keys in the dictionary which needs to be a known data type in OPC UA.
TValueThe type of the values in the dictionary which needs to be a known data type in OPC UA.

Inheritance ​

Object → Dictionary<TKey, TValue> → OpcDictionary<TKey, TValue>

Implements ​

Remarks ​

Using the OpcDictionary<TKey, TValue> requires an OPC UA server which defines the according non-generic type which uses specific type arguments for TKey and TValue. A client application in turn have to manually define the server defined / used combination of the generic OpcDictionary<TKey, TValue> type and its specific type arguments for TKey and TValue.

Constructors ​

NameDescription
OpcDictionaryInitializes 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.

Methods ​

NameDescription
RegisterTypestatic · 3 overloadsRegisters 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.

Inherits members from Dictionary<TKey, TValue>.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.9–v2.59