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

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

  • Friday, November 23, 2012 10:05 AM
     
     

    hi...

    I know about linq to object .

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

All Replies

  • Friday, November 23, 2012 4:24 PM
     
     Answered

    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".