namespace question (.mpr.)

  • Thread starter Thread starter raffelm
  • Start date Start date
R

raffelm

I want to include ManagementObjectSearcher class in my code.
According to MSND I need to add using System.Management to my C# file.
But I dont have a Management name space in system. I'm using
VS.NET2003 with Framework 1.1.

What namespace am I suppose to use to get the use
ManagementObjectSearcher class ?

Thnx
Matt
 
Matt,

You will have to use the classes in the System.Management namespace.

Hope this helps.
 
did you try creating a reference to System.Management?

in project explorer, select References. Right click-> Add Reference.
In the .NET tab, scroll down til you see System.Management. Select it.

--- Nick
 
Nicholas Paldino said:
Matt,

You will have to use the classes in the System.Management namespace.

Hope this helps.

Actually, it doesnt. As I stated in my previous post, I wasn't seeing
a System.Management namespace. The problem was I needed to include a
reference to it in my project settings. Then, the name space was
available.

Matt
 
Nick Malik said:
did you try creating a reference to System.Management?

in project explorer, select References. Right click-> Add Reference.
In the .NET tab, scroll down til you see System.Management. Select it.

Thats what I was missing. I assumed, incorrectly, that all of the
System.* namespaces were automatically part of my project.

Matt
 
Back
Top