DANSrvAE Reference
OnEvent Delegate
See Also  Send comments on this topic.
NSPlugin Assembly > NSPlugin Namespace : OnEvent Delegate

clientSubscription
refresh
lastRefresh
count
events

Glossary Item Box

Definition of the generic server callback method.
DON'T USE IT DIRECTLY. Use the instance cbOnEvent.

clientSubscription: the client handle for the subscription object sending the event notifications.
refresh: TRUE if this is a subscription refresh.
lastRefresh: TRUE if this is the last subscription refresh in response to a specific
invocation of the EventSubscriptionMgt.Refresh method.
count : Number of event notifications. A value of zero indicates this is a keep-alive
notification (see EventSubscriptionMgt2.SetKeepAlive() ).
events : Array of event notifications.

Syntax

Visual Basic (Declaration) 
Public Delegate Function OnEvent( _
   ByVal clientSubscription As Integer, _
   ByVal refresh As Boolean, _
   ByVal lastRefresh As Boolean, _
   ByVal count As Integer, _
   ByVal events() As EventData _
) As Integer
C# 
public delegate int OnEvent( 
   int clientSubscription,
   bool refresh,
   bool lastRefresh,
   int count,
   EventData[] events
)

Parameters

clientSubscription
refresh
lastRefresh
count
events

Requirements

Namespace: NSPlugin

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: NSPlugin (in D:\PRODUCTS\OPCDA.NET\Server\Customization\AECombo\bin\DocX\AE\NSPlugin.dll)

See Also

© 2004-2017 Advosol Inc. All Rights Reserved.