Skip to content

Reference

OpcMemberSwitch Class

Declares the condition under which an optional member exists in dependency of the value of a switch member.

Reference

OpcMemberSwitch Class ​

since v2.8

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcMemberSwitch Members
Also in
Opc.UaFx.Client

Declares the condition under which an optional member exists in dependency of the value of a switch member. The switch member can be either a single bit in the 'EncodingMask' or a different member its value is compared to a switch value (see Value).

Syntax ​

csharp
public class OpcMemberSwitch
vbnet
Public Class OpcMemberSwitch

Inheritance ​

Object → OpcMemberSwitch

Constructors ​

NameDescription
OpcMemberSwitch4 overloadsInitializes a new instance of the OpcMemberSwitch class which refers to the bit specified.

Properties ​

NameDescription
BitGets the zero-based number of the bit in the 'EncodingMask' which controls the existence of an optional member.
Conditionssince v2.9Gets a value which identities in which way the current OpcMemberSwitch decides whether a member exists.
NameGets the name of the switch member its value is compared to control the existence of an optional member.
OperatorGets a value which defines the relational operator to use when comparing the value of a referenced Bit or the value of a referenced switch member refered to by Name.
ValueGets the value towards the value of the switch member, referenced by the Bit of the 'EncodingMask' or by the Name, is to be compared using the Operator of the OpcMemberSwitch.

Methods ​

NameDescription
Equalsstatic · since v2.32Provides a generic named equality OpcMemberSwitch evaluating to the value specified.
MatchesEvaluates the switch condition against the value specified.
ToStringoverrideReturns a string representing the information used by the current OpcMemberSwitch.

Applies to ​

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