OPC Studio User's Guide and Reference
IsClsCompliant Property



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA.NodeSpace Namespace > UADataVariable Class : IsClsCompliant Property
Determines whether the value type of the OPC variable is CLS-compliant.
Syntax
'Declaration
 
Public Overridable ReadOnly Property IsClsCompliant As Boolean
'Usage
 
Dim instance As UADataVariable
Dim value As Boolean
 
value = instance.IsClsCompliant
public virtual bool IsClsCompliant {get;}
public:
virtual property bool IsClsCompliant {
   bool get();
}

Property Value

true if the type of the variable is CLS-compliant; otherwise, false.

The default value of this property is True.

Remarks
true if the type of the variable is CLS-compliant; otherwise, false.

When the value type is not CLS-compliant, some OPC UA client code (such as code written in VB.NET) might have problems processing the values.

CLS-compliance ensures that the variable type adheres to the Common Language Specification (CLS), allowing it to be used across different .NET languages that support CLS-compliant types.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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