Reference
IOpcUnion Members
Defines that the implementing data type is to be treat like unions.
Reference
IOpcUnion Members
- Type
- IOpcUnion
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Properties
SwitchValue
Gets or sets the switch value which is evaluated during encoding and decoding of this structure to decide which field is to be decoded or encoded. The value zero defines no property is to be encoded nor decoded. Therefore the first property in the union is transported if this property is equals to the value one (1), the second property if this property is equals to the value two (2) and so on.
[CLSCompliant(false)]
uint SwitchValue { get; set; }<CLSCompliant(False)>
Property SwitchValue As UIntegerProperty value
The switch value which is evaluated to decide which property of the union is to be encoded or decoded. The default value is zero (0). If zero (0) no property is encoded nor decoded. To encode/decode the first property this property needs to be set to the value one (1), to encode/decode the second property this property needs to be set to the value two (2) and so on.

