OPC Studio User's Guide and Reference
TrueState Property (UATwoStateDiscreteNode)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess Namespace > UATwoStateDiscreteNode Class : TrueState Property
Contains a string to be associated with this DataItem when it is TRUE.
Syntax
'Declaration
 
<MappingTagAttribute("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")>
<NotNullAttribute()>
<UANodeAttribute(".[TrueState]")>
<UADataAttribute()>
Public Property TrueState As String
'Usage
 
Dim instance As UATwoStateDiscreteNode
Dim value As String
 
instance.TrueState = value
 
value = instance.TrueState
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")]
[NotNull()]
[UANode(".[TrueState]")]
[UAData()]
public string TrueState {get; set;}
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")]
[NotNull()]
[UANode(".[TrueState]")]
[UAData()]
public:
property String^ TrueState {
   String^ get();
   void set (    String^ value);
}

Property Value

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

The default value of this property is "" (String.Empty).

Remarks

is typically used for a contact when it is in the closed (non-zero) state.

e.g. "RUN", "CLOSE", "ENABLE", "SAFE“, etc.

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