InstanceDataCollection Constructor (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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.  http://go.microsoft.com/fwlink/?linkid=14202")]
public InstanceDataCollection(
	string counterName
)

Parameters

counterName
Type: System.String

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

Exception Condition
ArgumentNullException

The counterName parameter is null.

.NET Framework
Available since 1.1
Return to top
Show: