IOpcUnion Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The IOpcUnion interface defines the following members.

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.

C#

[CLSCompliant(false)]
uint SwitchValue { get; set; }


Property Value

UInt32

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.