| Name | Description |
| Constant | Overloaded. 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. |
| ConstantValue | Overloaded. 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. |
| ProcessRead | Specifies that reads of this data variable will be processed by the specified read function. |
| ProcessWrite | Specifies that writes of this data variable will be processed by the specified write function. |
| Readable | Overloaded. Makes the data variable readable. |
| ReadFunction | Overloaded. Modifies the data variable to provide attribute data for the pull data provision model by a specified function.
This method always makes the data variable readable, but that does not mean it automatically makes it non-writable. If you need a data variable that is readable and non-writable, combine this method with calling Writable(UADataVariable,Boolean) method with the 'writable' parameter set to false . |
| ReadValueFunction | Overloaded. Modifies the data variable to provide value for the pull data provision model by a specified function.
This method always makes the data variable readable, but that does not mean it automatically makes it non-writable. If you need a data variable that is readable and non-writable, combine this method with calling Writable(UADataVariable,Boolean) method with the 'writable' parameter set to false .
The status code will be "Good", and the timestamp will be the current time after the read function has been called. |
| ReadWrite | Overloaded. Modifies the data variable to behave as read-write register, with specified initial attribute data (value, status code, timestamp).
This method makes the data variable both readable and writable. The data written to the data variable will become the data subsequently read from the data variable.
This method also makes the status code and source timestamp of the data variable writable, i.e. OPC UA clients will be able to modify their values. If you need a different behavior, call the Writable(UADataVariable,Boolean,Boolean,Boolean) method subsequently, with desired parameters, or modify the UADataVariable.WritableStatusCode and/or UADataVariable.WritableSourceTimestamp accordingly (set one or both to false ).
In order to make a read-write register of certain type, but without having to specify initial data, consider simply using one of the ValueType(UADataVariable,Type) overloads. |
| ReadWriteValue | Overloaded. Modifies the data variable to behave as read-write register, with specified initial value.
This method makes the data variable both readable and writable. The data written to the data variable will become the data subsequently read from the data variable.
This method keeps the settings of UADataVariable.WritableStatusCode and UADataVariable.WritableSourceTimestamp. This means that by default, the status code and source timestamp of the data variable will not writable. i.e. OPC UA clients will not be able to modify them. If you need a different behavior, call the Writable(UADataVariable,Boolean,Boolean,Boolean) method subsequently, with desired parameters, or modify the UADataVariable.WritableStatusCode and/or UADataVariable.WritableSourceTimestamp accordingly (set one or both to true ).
In order to make a read-write register of certain type, but without having to specify initial data, consider simply using one of the ValueType(UADataVariable,Type) overloads. |
| SetArrayDimensions | Sets the array dimensions of this data variable. |
| SetArrayRank | Sets the array rank of this data variable. |
| SetMinimumSamplingInterval | Sets the minimum sampling interval of this data variable. |
| SetState<TNode> | Sets the arbitrary object associated with the node. |
| UpdateWriteAttributeData | Updates the write attribute data with given value, and current time for the timestamp. |
| ValueType | Overloaded. Modifies the data variable to use certain value type. |
| Writable | Overloaded. Makes the data variable writable. |
| WriteFunction | Overloaded. Modifies the data variable for consuming attribute data by a specified function, for the push data consumption model.
This method always makes the data variable writable, including its status code and source timestamp, i.e. OPC UA clients will be able to modify them. If you need a different behavior, call the Writable(UADataVariable,Boolean,Boolean,Boolean) method subsequently, with desired parameters, or modify the UADataVariable.WritableStatusCode and/or UADataVariable.WritableSourceTimestamp accordingly (set one or both to true ).
This method does not change the readability access of the data variable. By default, data variables are readable. If you need a data variable that is writable but non-readable, combine this method with calling Readable(UADataVariable,Boolean) method with the 'readable' parameter set to false .
The write function returns a OpcLabs.EasyOpc.UA.UAStatusCode that indicates the outcome of the OPC UA write operation. The WriteFunction(UADataVariable,Type,Func<UAAttributeData,UAStatusCode>) method overloads are the most generic extensions methods for writing. If you only need to deal with the data variable value (and not its status code and/or timestamp), consider using one of the WriteValueFunction<TValue>(UADataVariable,Type,Func<TValue,UAStatusCode>) or WriteValueAction<TValue>(UADataVariable,Type,Action<TValue>) method overloads, for shorter code and easier programming. |
| WriteValueAction | Overloaded. Modifies the data variable for consuming values by a specified action, for the push data consumption model.
This method always makes the data variable writable; however, its status code and source timestamp will not be writable, i.e. OPC UA clients will not be able to modify them. If you need a different behavior, use one of the WriteFunction(UADataVariable,Type,Func<UAAttributeData,UAStatusCode>) method overloads instead.
This method does not change the readability access of the data variable. By default, data variables are readable. If you need a data variable that is writable but non-readable, combine this method with calling Readable(UADataVariable,Boolean) method with the 'readable' parameter set to false .
Unless the write value action throws a OpcLabs.EasyOpc.UA.UAStatusCodeException, a "Good" status code will be returned as the outcome of the OPC UA write operation. If the write value action function throws OpcLabs.EasyOpc.UA.UAStatusCodeException, the OpcLabs.EasyOpc.UA.UAStatusCodeException.StatusCode of the exception will become the outcome of the OPC UA write operation. For performance reasons, however, if you want to return status codes other than "Good" as OPC UA write operation outcomes, it is recommended that you use one of the WriteValueFunction<TValue>(UADataVariable,Type,Func<TValue,UAStatusCode>) method overloads instead. With these methods, you specify a write value function that returns the OpcLabs.EasyOpc.UA.UAStatusCode that is the OPC UA write operation outcome, allowing the status code be passed without the ineffective throwing and catching of the OpcLabs.EasyOpc.UA.UAStatusCodeException. |
| WriteValueFunction | Overloaded. Modifies the data variable for consuming values by a specified function, for the push data consumption model.
This method always makes the data variable writable; however, its status code and source timestamp will not be writable, i.e. OPC UA clients will not be able to modify them. If you need a different behavior, use one of the WriteFunction(UADataVariable,Type,Func<UAAttributeData,UAStatusCode>) method overloads instead.
This method does not change the readability access of the data variable. By default, data variables are readable. If you need a data variable that is writable but non-readable, combine this method with calling Readable(UADataVariable,Boolean) method with the 'readable' parameter set to false .
The write function returns a OpcLabs.EasyOpc.UA.UAStatusCode that indicates the outcome of the OPC UA write operation. If the outcome of your write operation should always be "Good", you can make your code a bit simpler by using one of WriteValueAction<TValue>(UADataVariable,Type,Action<TValue>) method overloads instead. |