'Declaration
<ExtensionAttribute()> Public Overloads Shared Function SubscribeMonitoredItem( _ ByVal client As IEasyUAClient, _ ByVal monitoredItemArguments As UAMonitoredItemArguments, _ ByVal eventCallback As EasyUAEventNotificationEventHandler _ ) As Integer
'Usage
Dim client As IEasyUAClient Dim monitoredItemArguments As UAMonitoredItemArguments Dim eventCallback As EasyUAEventNotificationEventHandler Dim value As Integer value = IEasyUAClientExtension.SubscribeMonitoredItem(client, monitoredItemArguments, eventCallback)
[Extension()] public static int SubscribeMonitoredItem( IEasyUAClient client, UAMonitoredItemArguments monitoredItemArguments, EasyUAEventNotificationEventHandler eventCallback )
[Extension()] public: static int SubscribeMonitoredItem( IEasyUAClient^ client, UAMonitoredItemArguments^ monitoredItemArguments, EasyUAEventNotificationEventHandler^ eventCallback )
Parameters
- client
- The client object that will perform the operation.
- monitoredItemArguments
- Array of arguments, one element per each monitored item involved in the operation.
- eventCallback
- A callback method to be invoked for each event notification.
Return Value
The method returns an integer handle that uniquely identifies the monitored item subscription.