Subscribe to changes of a particular monitored item. For each significant monitored item change, either the
IEasyUAClient.DataChangeNotification event is generated, or a specified callback method is invoked. Subscribe to a monitored item, specifying an object that holds all necessary arguments (the object can optionally contain the callback method as well).
Syntax
Parameters
- client
- The client object that will perform the operation.
- monitoredItemArguments
- Array of arguments, one element per each monitored item involved in the operation.
Return Value
The method returns an integer handle that uniquely identifies the monitored item subscription.
Exceptions
Exception | Description |
System.ArgumentNullException |
A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception. |
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