Instrumenting .NET Applications

The .NET framework provides a number of base class libraries that help instrument .NET applications. They include the System.Management.Instrumentation, the System.Diagnostics, and the System.Management namespaces. Between these three namespaces you will find all the base class libraries that give WMI support.

Visual Studio .NET cannot automatically find the System.Management namespace. To use the System.Management namespace, you must add a reference to your project. To do this, right-click the project name in the Solution Explorer, select Add Reference, scroll down in the .NET list, select System.Management, and then click OK. From this point on you can use the System.Management namespace in your projects.

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.