DANSrv Reference
CreateServerItems Method
See Also  Send Feedback
NSPluginNet4 Assembly > NSPlugin Namespace > AppPlugin Class : CreateServerItems Method

cmdParams
String with the command line parameters as they were specified when the server was being registered. The XDASrv XML DA server does not support this feature and calls always with an empty string.

Glossary Item Box

This method is called from the generic server at the startup, when the first client connects. All items supported by the server need to be defined by calling the AddItem callback method for each item.

The Item IDs are fully qualified names ( e.g. Dev1.Chn5.Temp )
The generic server part creates an approriate hierachical address space. The sample code defines the application item handle as the the buffer array index. This handle is passed in the calls from the generic server to identify the item. It should allow quick access to the item definition / buffer. The handle may be implemented differently depending on the application.

The branch separator character used in the fully qualified item name must match the separator character defined in the GetServerParameters method.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As AppPlugin
Dim cmdParams As String
Dim value As Integer
 
value = instance.CreateServerItems(cmdParams)
C# 
public new int CreateServerItems( 
   string cmdParams
)

Parameters

cmdParams
String with the command line parameters as they were specified when the server was being registered. The XDASrv XML DA server does not support this feature and calls always with an empty string.

Remarks

If the item definitions are read from an XML configuration file and this file also contains the BranchSeperator character definition then the file must be loaded in the GetServerParameters method because this method is called first and needs the BranchSeperator character definition.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2017 Copyright Advosol Inc. All Rights Reserved.