uaPLUS Reference
DefineCallbacks Method
See Also  Send Feedback
NSPlugin Namespace > GenericServer Class : DefineCallbacks Method

dlgAddItem
Add an item to the server's address space
dlgDeleteItem
Remove an item from the server's address space. NOT supported in this version.
dlgShutDownRequest
Initiates the server shutdown.
dlgSetItemValue
Writes a new item value into the server's cache
dlgGetRefreshNeed
Returns an array of handles of the items that need be refreshed.
dlgSetServerState
Returns information about the current server state.
dlgGetServerInfo
Returns information about the current server usage.
dlgGetItemInfo
Returns information about an item.

Glossary Item Box

This method is called from the generic server at startup. It passes the callback methods supported by the generic server. These callback methods can be called anytime to exchange data with the generic server.

The DefineCallbacks method must not be overloaded or changed. The default implementation stores the delegates for later callbacks.

Syntax

Visual Basic (Declaration) 
Public Sub DefineCallbacks( _
   ByVal dlgAddItem As AddItem, _
   ByVal dlgDeleteItem As DeleteItem, _
   ByVal dlgShutDownRequest As ShutDownRequest, _
   ByVal dlgSetItemValue As SetItemValue, _
   ByVal dlgGetRefreshNeed As GetRefreshNeed, _
   ByVal dlgSetServerState As SetServerState, _
   ByVal dlgGetServerInfo As GetServerInfo, _
   ByVal dlgGetItemInfo As GetItemInfo _
) 

Parameters

dlgAddItem
Add an item to the server's address space
dlgDeleteItem
Remove an item from the server's address space. NOT supported in this version.
dlgShutDownRequest
Initiates the server shutdown.
dlgSetItemValue
Writes a new item value into the server's cache
dlgGetRefreshNeed
Returns an array of handles of the items that need be refreshed.
dlgSetServerState
Returns information about the current server state.
dlgGetServerInfo
Returns information about the current server usage.
dlgGetItemInfo
Returns information about an item.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.