Modifies the data variable to provide the specified constant attribute data (value, status code, timestamp), non-writable.
For reads and subscriptions, the data variable will provide always the same data, specified in this method call. The data variable will not be writable.
Overload List
Overload | Description |
Constant(UADataVariable,Type,UAAttributeData) | Makes constant data variable with given value type, and attribute data object (value, status code, timestamp). |
Constant(UADataVariable,TypeCode,UAAttributeData) | Makes constant data variable with given value type code, and attribute data object (value, status code, timestamp). |
Constant(UADataVariable,UANodeId,IReadOnlyList<Int32>,UAAttributeData) | Makes constant data variable with given data type Id, array dimension list, and attribute data object (value, status code, timestamp). |
Constant(UADataVariable,UANodeId,UAAttributeData) | Makes constant data variable with given data type, attribute data object (value, status code, timestamp), and an empty array dimension list. |
Constant<TValue>(UADataVariable,UAAttributeData<TValue>) | Makes constant data variable using generic-typed attribute data object (typed value, status code, timestamp). |
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