By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,256 Members | 1,272 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,256 IT Pros & Developers. It's quick & easy.

Missing - Imports System.Management

P: n/a
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.
Feb 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Found the fix.

From the menu bar Project --> Project --> Add Class
"Jason" <ja***@someone.com> wrote in message
news:%2*****************@TK2MSFTNGP10.phx.gbl...
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.

Feb 17 '06 #2

P: n/a
"Jason" <ja***@someone.com> schrieb:
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"?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Feb 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.