'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Shared Function SubscribeMultipleEvents( _ ByVal client As IEasyUAClient, _ ByVal monitoredItemArgumentsArray() As UAMonitoredItemArguments, _ ByVal eventCallback As EasyUAEventNotificationEventHandler _ ) As Integer()
'Usage
Dim client As IEasyUAClient Dim monitoredItemArgumentsArray() As UAMonitoredItemArguments Dim eventCallback As EasyUAEventNotificationEventHandler Dim value() As Integer value = IEasyUAClientExtension.SubscribeMultipleEvents(client, monitoredItemArgumentsArray, eventCallback)
[Extension()] [NotNull()] public static int[] SubscribeMultipleEvents( IEasyUAClient client, UAMonitoredItemArguments[] monitoredItemArgumentsArray, EasyUAEventNotificationEventHandler eventCallback )
[Extension()] [NotNull()] public: static array<int>^ SubscribeMultipleEvents( IEasyUAClient^ client, array<UAMonitoredItemArguments^>^ monitoredItemArgumentsArray, EasyUAEventNotificationEventHandler^ eventCallback )
Parameters
- client
- The client object that will perform the operation.
- monitoredItemArgumentsArray
- Array of OpcLabs.EasyOpc.UA.OperationModel.UAMonitoredItemArguments. Array of argument objects specifying what and how to subscribe.
- eventCallback
- A callback method to be invoked for each event notification.
Return Value
Array of System.Int32. The function returns an array of integer handle. Each handle uniquely identifies the monitored item subscription. The indices of elements in the output array are the same as those in the input array, monitoredItemArgumentsArray.