Contact Info

Crumbtrail

ActiveXperts.com » Support » Network Monitor » KB Article

Knowledge Base FAQ Item #6650210

 

Q6650210: Can I use the Configration API in VB.NET?

If your Visual Studio version still supports VB.NET, it is possible. VB.NET has become less prominet in recent versions of Visual Studio.

To write a VB.NET based console application, please use the following steps:

  • Launch Microsoft Visual Studio;
  • Create a new 'VB.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:
      Imports AXNMCFGLib
  • Declare and create a new Network Monitor Config API object like this:
      Dim objNMConfig As NMConfig = New NMConfig()

Finally, start writing your program like this:

Imports AXNMCFGLib
Dim objNMConfig As NMConfig = New NMConfig()
Console.WriteLine("ActiveXperts Network Monitor API: {0}" & vbCrLf & "Build: {1}" & vbCrLf & "Module: {2}", 
                   objNMConfig.Version, objNMConfig.Module, objNMConfig.Build)

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\

(viewed: 734)