none
why it is not possible to use linq to query WMI objects ? afterall it is object too . RRS feed

  • Question

  • hi...

    I know about linq to object .

    I have try it against wmi object but it has not worked. 

    Friday, November 23, 2012 10:05 AM

Answers

  • Hi;

    WMI uses a database and as we have Linq to SQL and Linq to Entity Framework and other providers to work with a database WMI will need a provider to help. There is a project on CodePlex which has an implementation to do this. If you go to the link on CodePlex you will be able to download it and there are two links to some documentation on the Home page. I have not used this code myself.

    Linq to WMI

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    • Proposed as answer by Shyam Kr Monday, November 26, 2012 2:02 PM
    • Marked as answer by Alexander Sun Friday, December 7, 2012 1:58 AM
    Friday, November 23, 2012 4:24 PM