Knowledge Base FAQ Item #6650200
Q6650200: Can I use the Configration API in CSharp.NET?
Sure. To write a .NET based console application, please use the following steps:
- Launch Microsoft Visual Studio;
- Create a new '.NET Console Project'
- In the Project context menu, choose 'Add->COM Reference...' and 'ActiveXperts Network Monitor Configuration API'
- In your program source code, include the 'ActiveXperts Network Monitor Configuration API' namespace like this:
using AXNMCFGLib; - Declare and create a new Network Monitor Config API object like this:
NMConfig objNMConfig = new NMConfig();
Finally, start writing your program like this:
using AXNMCFGLib; NMConfig objNMConfig = new NMConfig(); // Create instance of COM Object Console.WriteLine("ActiveXperts Network Monitor API {0}\nBuild: {1}\nModule: {2}\n", objNMConfig.Version, objNMConfig.Build, objNMConfig.Module);
Add your functionality using the Configuration API Manual and the Powershelll/VBScript samples included with the software.
Default Folder: C:\ProgramData\ActiveXperts\Network Monitor\Configuration API\