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
 
<DefaultValueAttribute("")>
<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
[DefaultValue("")]
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")]
[NotNull()]
[UANode(".[TrueState]")]
[UAData()]
public string TrueState {get; set;}
[DefaultValue("")]
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")]
[NotNull()]
[UANode(".[TrueState]")]
[UAData()]
public:
property String^ TrueState {
   String^ get();
   void set (    String^ value);
}
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