471,321 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

ManagementBaseObject Item Collection

I am looking for all the string indexers for the ManagementObject collection
and do not know where in the MSDN documentation to find them. Name and
Description are two of them, but I would like a list of the other available
items.

Specifically, I am looking for a way to retrieve the name of a DVD Movie
when it is inserted into the drive....

foreach ( ManagementObject mo in queryCollection)

{

string driveLetter = mo["Name"].ToString();

string driveName = mo["Description"].ToString();

Console.WriteLine("{0} {1}",driveLetter,driveName);

Thanks for your help
Dec 16 '05 #1
0 1851

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Marc L'Ecuyer | last post: by
3 posts views Thread by Walter Zydhek | last post: by
9 posts views Thread by Gerald Lightsey | last post: by
7 posts views Thread by Marc Bishop | last post: by
2 posts views Thread by meyousikmann | last post: by
reply views Thread by rosydwin | last post: by

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.