XMLDA.NET Reference
Class Wizard
Send comments on this topic.

Glossary Item Box

Use the class wizard to add an OPC client class to an existing project. The project may be and ASP.NET application, a Windows Forms or Console application or actually any type of project.

The XMLDA.NET Class Wizard adds a reference to the XmlDaNet.dll or XmlDaNet.Net4.dll assembly and a server access class to the project. The class contains small sample code that calls GetStatus and Browse. Either use, modify or delete the sample code and add the project specific client code.

 

Action Description

 

Add Class

 

1) In the current project right click the project name in the solution explorer window.
2) select Add - Add New Item and select the XMLDA.NET Client Class template
3) Modify the File Name, then click Open
The class file is created and added to the project together with a reference to the XmlDaNet.dll interface assembly.

Sample Code

 

The wizard created sample code calls:
- GetStatus
- Browse

The sample code is in the namespace XmlDANetClient. Either add a
using XmlDANetClient;
statement to the modules using method of the Client class
or change the namespace name to the default project namespace.

XMLDA.NET Assembly

 

The wizard copies the XmlDaNet.dll or XmlDaNet.Net4.dll interface assembly from the template directory into the project directory.
The project works with this version of the wrapper DLL even if other projects use a different version.

To upgrade the project to a new version of the Wrapper assembly you need to:
- remove the XmlDaNet assembly reference in the VS project
- add a reference to the new XmlDaNet.dll

 


© 2002-2012 Advosol Inc. All Rights Reserved.