InstanceDataCollection(String) InstanceDataCollection(String) InstanceDataCollection(String) InstanceDataCollection(String) Constructor

Definition

Warning

This API is now obsolete.

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

public:
 InstanceDataCollection(System::String ^ counterName);
[System.Obsolete("Use InstanceDataCollectionCollection indexer instead.")]
[System.Obsolete("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")]
[System.Obsolete("This constructor has been deprecated.  Please use System.Diagnostics.InstanceDataCollectionCollection.get_Item to get an instance of this collection instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public InstanceDataCollection (string counterName);
new System.Diagnostics.InstanceDataCollection : string -> System.Diagnostics.InstanceDataCollection
Public Sub New (counterName As String)

Parameters

counterName
String String String String

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

Exceptions

Applies to