DANSrvAE Reference
DefineCallbacks Method
See Also  Send comments on this topic.
NSPlugin Assembly > 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 _
) 
C# 
public void DefineCallbacks( 
   AddItem dlgAddItem,
   DeleteItem dlgDeleteItem,
   ShutDownRequest dlgShutDownRequest,
   SetItemValue dlgSetItemValue,
   GetRefreshNeed dlgGetRefreshNeed,
   SetServerState dlgSetServerState,
   GetServerInfo dlgGetServerInfo,
   GetItemInfo dlgGetItemInfo
)

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

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

See Also

© 2004-2017 Advosol Inc. All Rights Reserved.