OPC Studio User's Guide and Reference
Boolean Property (UAOpcBinaryStandardDataTypes)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeModel Namespace > UAOpcBinaryStandardDataTypes Class : Boolean Property
"A two-state logical value represented as an 8-bit value."
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared ReadOnly Property Boolean As PrimitiveDataType
'Usage
 
Dim value As PrimitiveDataType
 
value = UAOpcBinaryStandardDataTypes.Boolean
[NotNull()]
public static PrimitiveDataType Boolean {get;}
[NotNull()]
public:
static property PrimitiveDataType^ Boolean {
   PrimitiveDataType^ get();
}

Property Value

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

Remarks

In .NET, it is represented by the Boolean type.

The OPC UA specification does not describe how the logical value should be encoded in the 8 bits. The component encodes False as all zeros, and True as all ones. The component decodes a zero value to False, and any non-zero value to True.

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