473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

namespace question (.mpr.)

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
Nov 16 '05 #1
4 2638
Matt,

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

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"raffelm" <ma*********@mindspring.com> wrote in message
news:ba**************************@posting.google.c om...
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

Nov 16 '05 #2
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

"raffelm" <ma*********@mindspring.com> wrote in message
news:ba**************************@posting.google.c om...
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

Nov 16 '05 #3
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:<Oj**************@tk2msftngp13.phx.gbl>...
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
Nov 16 '05 #4
"Nick Malik" <ni*******@hotmail.nospam.com> wrote in message news:<rcV%c.405086$%_6.116194@attbi_s01>...
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
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a...
3
by: Mike Dickens | last post by:
hi, i'm sure this has come up before but havn't managed to find an answer. if i have the following xslt <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet method="xml" version="1.0"...
6
by: Don Wash | last post by:
Hi There! I just need some advice on Namespace management for creating reusable VB.NET applications. I would like my applications to have this namespace structure... Namespace MyCompany ...
8
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
2
by: puzzlecracker | last post by:
after reading some of the post I found out something rather radical to my previous understanding: that when you do #include<iostream> #include<string> #include<vector> etc compiler puts...
2
by: Tony Johansson | last post by:
Hello! I'm reading a book about C++ and there is something that I don't understand so I ask you. Below I have the text from the book and the code from the file where main is located and some...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
14
by: Tiraman | last post by:
Hi , I would like to use nested namespace . I have 3 namespace as dll's : Namespace A Namespace B Namespace C And i want to have some namespace that contain them all , some thing like
2
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.