Gets the object and counter registry keys for the objects associated with this instance data collection.
Assembly: System (in System.dll)
Each software component creates keys for its objects and counters when it is installed and writes counter data while it is executing. You can access this data as you would access any other registry data. However, although you use the registry to collect performance data, the data is not stored in the registry database. Instead, the system collects the data from the appropriate system object managers.
The following code example uses the property of an InstanceDataCollectionCollection to return a collection of counter names, which it converts to an array of String. It generates an array of InstanceDataCollection objects using the Values property. For each element in the array of counter names, it displays the name and calls a function to process the associated InstanceDataCollection.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.