XMLDA.NET Reference
DataBindFromXmlFile Method
See Also  Send Feedback
xmldanet Namespace > XmlServer Class : DataBindFromXmlFile Method

parent
The object that owns the bound controls. This is used to thread synchronise the access to Windows.Forms controls. In DataBinds to other objects this parameter is not used.
fileName
Name of the XML file. The name is used as a full path name if it starts with \xx or x:xx . Otherwise the file is loaded from the application directory. For Windows form applications this is the directory with the exe file. For ASP.NET application it is the web directory with the .aspx file.
listName
Name of the DataBind list in the XML file.
refreshRate
Server update rate for poll/callback DataBind handling
localeID
Locale ID for error text. The default is "en"
binds
Array with the created DataBind definitions.
Errors
Array with error code/text indicating erros at establishing the DataLink for an item. Null (Nothing) indicates success.

Glossary Item Box

Load the DataBind definitions from a ListBuilder generated XML file. A DataBind subscription is started with the call parameters and the DataBinds for the items defined in the XML file.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As XmlServer
Dim parent As Object
Dim fileName As String
Dim listName As String
Dim links() As DataBindObjectLink
Dim refreshRate As Integer
Dim localeID As String
Dim binds As DataBindSubscription()
Dim Errors As OPCError()
 
instance.DataBindFromXmlFile(parent, fileName, listName, links, refreshRate, localeID, binds, Errors)
C# 
public void DataBindFromXmlFile( 
   object parent,
   string fileName,
   string listName,
   DataBindObjectLink[] links,
   int refreshRate,
   string localeID,
   out DataBindSubscription[] binds,
   out OPCError[] Errors
)

Parameters

parent
The object that owns the bound controls. This is used to thread synchronise the access to Windows.Forms controls. In DataBinds to other objects this parameter is not used.
fileName
Name of the XML file. The name is used as a full path name if it starts with \xx or x:xx . Otherwise the file is loaded from the application directory. For Windows form applications this is the directory with the exe file. For ASP.NET application it is the web directory with the .aspx file.
listName
Name of the DataBind list in the XML file.
links
Array with definitions to link a DataBind definition to an object in the user application. Object references need to be assigned at run-time. A DataBind can be linked to only one object and the property definitions in the DataBind definition must match the type of the object.
refreshRate
Server update rate for poll/callback DataBind handling
localeID
Locale ID for error text. The default is "en"
binds
Array with the created DataBind definitions.
Errors
Array with error code/text indicating erros at establishing the DataLink for an item. Null (Nothing) indicates success.

Requirements

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

>

See Also

© 2002-2012 Advosol Inc. All Rights Reserved.