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.
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 _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As GenericServer Dim dlgAddItem As AddItem Dim dlgDeleteItem As DeleteItem Dim dlgShutDownRequest As ShutDownRequest Dim dlgSetItemValue As SetItemValue Dim dlgGetRefreshNeed As GetRefreshNeed Dim dlgSetServerState As SetServerState Dim dlgGetServerInfo As GetServerInfo Dim dlgGetItemInfo As GetItemInfo instance.DefineCallbacks(dlgAddItem, dlgDeleteItem, dlgShutDownRequest, dlgSetItemValue, dlgGetRefreshNeed, dlgSetServerState, dlgGetServerInfo, dlgGetItemInfo) |
C# | |
---|---|
public void DefineCallbacks( AddItem dlgAddItem, DeleteItem dlgDeleteItem, ShutDownRequest dlgShutDownRequest, SetItemValue dlgSetItemValue, GetRefreshNeed dlgGetRefreshNeed, SetServerState dlgSetServerState, GetServerInfo dlgGetServerInfo, GetItemInfo dlgGetItemInfo ) |
Managed Extensions for C++ | |
---|---|
public: void DefineCallbacks( AddItem* dlgAddItem, DeleteItem* dlgDeleteItem, ShutDownRequest* dlgShutDownRequest, SetItemValue* dlgSetItemValue, GetRefreshNeed* dlgGetRefreshNeed, SetServerState* dlgSetServerState, GetServerInfo* dlgGetServerInfo, GetItemInfo* dlgGetItemInfo ) |
C++/CLI | |
---|---|
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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family