OPC Studio User's Guide and Reference
Char Property



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeModel Namespace > UAOpcBinaryStandardDataTypes Class : Char Property
"An 8-bit UTF-8 character value."
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared ReadOnly Property Char As PrimitiveDataType
'Usage
 
Dim value As PrimitiveDataType
 
value = UAOpcBinaryStandardDataTypes.Char
[NotNull()]
public static PrimitiveDataType Char {get;}
[NotNull()]
public:
static property PrimitiveDataType^ Char {
   PrimitiveDataType^ get();
}

Property Value

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

Remarks

More precisely, the OPC UA specification should probably say that this is an 8-bit UTF-8 code unit. Another interpretation could be that only values that represent UTF-8 characters that fit into one code unit are allowed.

In .NET, it is represented by the Char type. The character value must not exceed 255, i.e. its high order byte must be zero.

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