OPC Studio 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.
Syntax
'Declaration
 
Public Overrides ReadOnly Property CurrentState As String
'Usage
 
Dim instance As UATwoStateDiscreteNode
Dim value As String
 
value = instance.CurrentState
public override string CurrentState {get;}
public:
property String^ CurrentState {
   String^ get() override;
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

The default value of this property is "False".

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