'Declaration
Sub ChangeEventSubscription( _ ByVal handle As Integer, _ ByVal notificationRate As Integer, _ ByVal filter As Object, _ ByVal active As Boolean _ )
'Usage
Dim instance As _EasyAEClient Dim handle As Integer Dim notificationRate As Integer Dim filter As Object Dim active As Boolean instance.ChangeEventSubscription(handle, notificationRate, filter, active)
Parameters
- handle
- Event subscription handle as returned by the SubscribeEvents method
- notificationRate
- The requested notification rate. The notification rate is in milliseconds and tells the server how often to send event notifications. This is a minimum time - do not send event notifications any faster that this UNLESS the buffer size is reached. A value of 0 for notification rate means that the server should send event notifications as soon as it gets them. This parameter is used to improve communications efficiency between client and server. This parameter is a recommendation from the client, and the server is allowed to ignore the parameter.
- filter
- An OpcLabs.EasyOpc.AlarmsAndEvents.AESubscriptionFilter that determines the filtering criteria to be used for the event subscription.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - active
- Activates or deactivates the subscription. If the client deactivates the subscription, then the server will no longer send event notifications to the client based on that subscription, and has no responsibility to buffer or maintain the event notifications. Thus, event notifications may be lost. Even if the subscription is inactive, the Refresh method will still function. In effect, this allows a client to obtain current condition states from time to time (by invoking Refresh) without the need to process event notifications in "real time".