Missing - Imports System.Management

J

Jason

I'm trying to work with the WMI class in the System.Management
namespace with Visual Basic.Net. I copied and pasted some example code
from Microsoft that contains the following namespace imports:

Imports System
Imports System.Management
Imports ROOT.CIMV2.Win32

Visual Studio does not recognize the System.Management namespace nor
the ROOT.CIMV2.Win32 namespace. They are not listed in Intellisense
listings either.

I'm using the Microsoft Visual Studio .NET 2003 Professional version.

I know I'm probably missing something fundamental but I can't seem to
find it. Any help is *greatly* appreciated.
 
H

Herfried K. Wagner [MVP]

Jason said:
I'm trying to work with the WMI class in the System.Management
namespace with Visual Basic.Net. I copied and pasted some example code
from Microsoft that contains the following namespace imports:

Imports System
Imports System.Management

Are you sure your project contains a reference to "System.Management.dll"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top