Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InstanceDataCollection Constructor (String^)

 
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)

public:
[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")]
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:
© 2017 Microsoft