InstanceDataCollection Constructor (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Note: This API is now obsolete.

Initializes a new instance of the InstanceDataCollection class, using the specified performance counter (which defines a performance instance).

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

[ObsoleteAttribute("This constructor has been deprecated.  Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.")]
public InstanceDataCollection(
	string counterName


Type: System.String

The name of the counter, which often describes the quantity that is being counted.

Exception Condition

The counterName parameter is null.

.NET Framework
Available since 1.1
Return to top