VB .NET
SECTION 2 Examples
9
SECTION 2
Examples
These code snippets are provided as an example of how to use the CX-
Supervisor .NET Interface.
2-1
VB .NET
' declare variables
CErrorMngtClass errorMngr = new CErrorMngtClass();
object list;
' get list of errors
errorMngr.GetErrorLog(out list);
' convert list to string array
string[] errors = (string[])list;
' use error log…
2-2
C# .NET
// declare variables
CPointMngtClass pointMngr = new CPointMngtClass();
object list;
// get list of points
pointMngr.ListPoints(out list);
// convert list to string array
string[] points = (string[])list;
// use points list…
2-3
VB .NET and ASP.NET
The source code for the CX-Supervisor Standard Web Pages is installed along
with CX-Supervisor. It can be opened and run using Visual Web Developer
2008. The Express edition of this software is available as a free download
from Microsoft.
Summary of Contents for CX-Supervisor 3.1
Page 1: ...CX Supervisor Software Cat No W15E EN 01 NET Interface Software Release 3 1 Reference...
Page 3: ...Copyright Notice 2...
Page 6: ...Table of Contents 5...
Page 7: ...Table of Contents 6...
Page 9: ...Referencing the DLL SECTION 1 Introduction 8...
Page 11: ...VB NET and ASP NET SECTION 2 Examples 10...
Page 19: ...ErrorMngt SECTION 3 Class Reference 18...
Page 21: ...Revision history 20...