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
- 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
| Name | Description |
|---|---|
TKey | The type of the keys in the dictionary which needs to be a known data type in OPC UA. |
TValue | The 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
- ICollection
- ICollection<KeyValuePair<TKey, TValue>>
- IDeserializationCallback
- IDictionary
- IDictionary<TKey, TValue>
- IEnumerable
- IEnumerable<KeyValuePair<TKey, TValue>>
- IReadOnlyCollection<KeyValuePair<TKey, TValue>>
- IReadOnlyDictionary<TKey, TValue>
- ISerializable
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
| Name | Description |
|---|---|
| OpcDictionary | Initializes a new instance of the OpcDictionary< |
Methods
| Name | Description |
|---|---|
| RegisterType | Registers the OpcDictionary<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 and TValue ( |
Inherits members from Dictionary<TKey, TValue>.
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

