InstanceDataCollection Constructor (String^)
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Diagnostics
Assembly: System (in System.dll)
Return to top
Initializes a new instance of the InstanceDataCollection class, using the specified performance counter (which defines a performance instance).
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
Available since 1.1
Show: