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