OpcMemberSwitch Class

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll

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).

C#

public class OpcMemberSwitch


Inheritance Object › OpcMemberSwitch

Name Description
OpcMemberSwitch(Int32) Initializes a new instance of the OpcMemberSwitch class which refers to the bit specified. Using this constructor results in a OpcMemberSwitch which evaluates to the value true in case there the bit referenced is set (= high) in the 'EncodingMask'.
OpcMemberSwitch(String) Initializes a new instance of the OpcMemberSwitch class which refers to the switch member using its name specified. Using this constructor results in a OpcMemberSwitch which evaluates to the value true in case there the value of the switch member referenced by the name is not equals zero.
OpcMemberSwitch(String, Int64) Initializes a new instance of the OpcMemberSwitch class which refers to the switch member using its name while its value needs to be equals to the value specified. Using this constructor results in a OpcMemberSwitch which evaluates to the value true in case there the value of the switch member referenced by the name is equals to the value.
OpcMemberSwitch(String, Int64, OpcMemberSwitchOperator) Initializes a new instance of the OpcMemberSwitch class which refers to the switch member using its name while its values is compared to the value using the operator specified. Using this constructor results in a OpcMemberSwitch which evaluates to the value true in case there the comparison of value of the switch member referenced by the name using the operator and the value results to the value true.
Name Description
Bit Gets the zero-based number of the bit in the 'EncodingMask' which controls the existence of an optional member.
Conditions Gets a value which identities in which way the current OpcMemberSwitch decides whether a member exists.
Name Gets the name of the switch member its value is compared to control the existence of an optional member.
Operator Gets 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.
Value Gets 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.
Name Description
Matches(Int64) Evaluates the switch condition against the value specified.
ToString Returns a String representing the information used by the current OpcMemberSwitch.