QuickOPC User's Guide and Reference
CurrentState Property (UATwoStateDiscreteNode)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess Namespace > UATwoStateDiscreteNode Class : CurrentState Property
The current value of the variable (node), expressed as a string. The current value of the variable (node), expressed as a string.
Syntax
'Declaration
 
<DefaultValueAttribute("False")>
Public Overrides ReadOnly Property CurrentState As String
'Usage
 
Dim instance As UATwoStateDiscreteNode
Dim value As String
 
value = instance.CurrentState
[DefaultValue("False")]
public override string CurrentState {get;}
[DefaultValue("False")]
public:
property String^ CurrentState {
   String^ get() override;
}
Remarks

If SubstituteEmptyStates is false, the current state is taken from FalseState or TrueState, depending on the current OpcLabs.EasyOpc.UA.InformationModel.UABaseVariable<TValue,TAttribute>.Value.

If SubstituteEmptyStates is true, then if the results from the above would be an empty string, it is replaced by a value from FalseStateSubstitute or TrueStateSubstitute, depending on the current OpcLabs.EasyOpc.UA.InformationModel.UABaseVariable<TValue,TAttribute>.Value.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also