VB.NET - missing namespace

  • Thread starter Thread starter Jennifer
  • Start date Start date
J

Jennifer

I am working through a textbook on VB.NET and one of the
examples references the namespace: System.Management.
This (.Management at least) does not appear to be
available on my computer. Do I need to reference it? I
have VB.NET standard version 1.0.
 
Jennifer said:
I am working through a textbook on VB.NET and one of the
examples references the namespace: System.Management.
This (.Management at least) does not appear to be
available on my computer. Do I need to reference it? I
have VB.NET standard version 1.0.

You have to reference an assembly containing the namespace
System.Management. The assembly to be referenced depends on the class you
want to use. Have a look at the bottom of the documentation of the class at
the line "Assembly: ..."
 
Hi Jennifer,
I am working through a textbook on VB.NET and one of the
examples references the namespace: System.Management.
This (.Management at least) does not appear to be
available on my computer. Do I need to reference it? I
have VB.NET standard version 1.0.

Normaly the answer is Yes. But I become always confused if it is about the
standard version.

Maybe you can try it yourself?

You can reference on more ways,
You can add it with the right button in the solution explorer on reference
or on the main toolbar with Project -> Add reference and then
"system.management" select, ok.

I hope this works?

Cor
 
* "Jennifer said:
I am working through a textbook on VB.NET and one of the
examples references the namespace: System.Management.
This (.Management at least) does not appear to be
available on my computer. Do I need to reference it? I
have VB.NET standard version 1.0.

You will have to set a reference to "System.Management.dll".
 
Back
Top