locked
Cannot use System.Management namespace in using statement RRS feed

  • Question

  • I am currently working on a metro app in Visual Studio 2013. I need to access the Windows Management Instrumentation class (WMI) of the namespace System.Management. This namespace is already referenced but I cant use it in a using statement like this:

    using System.Management;


    • Edited by CoOlDud3 Monday, November 18, 2013 11:59 AM Grammar
    Monday, November 18, 2013 11:52 AM

Answers

  • it isnt possible. WInRT only allows to use a subset of the .net framework.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by CoOlDud3 Monday, November 18, 2013 6:16 PM
    Monday, November 18, 2013 1:54 PM
  • See .NET for Windows Store apps for more information on the supported .NET Framework classes and namespaces.
    • Marked as answer by CoOlDud3 Monday, November 18, 2013 6:16 PM
    Monday, November 18, 2013 3:32 PM
    Moderator

All replies

  • it isnt possible. WInRT only allows to use a subset of the .net framework.

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by CoOlDud3 Monday, November 18, 2013 6:16 PM
    Monday, November 18, 2013 1:54 PM
  • See .NET for Windows Store apps for more information on the supported .NET Framework classes and namespaces.
    • Marked as answer by CoOlDud3 Monday, November 18, 2013 6:16 PM
    Monday, November 18, 2013 3:32 PM
    Moderator