<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="11.0.0-preview.5.26302.115" />

System.Diagnostics.InstanceDataCollectionCollection

Provides a strongly typed collection of InstanceDataCollection objects.
public InstanceDataCollection this[string counterName] { get; }

Gets the instance data for the specified counter.

public ICollection Keys { get; }

Gets the object and counter registry keys for the objects associated with this instance data collection.

public ICollection Values { get; }

Gets the instance data values that comprise the collection of instances for the counter.

Initializes a new instance of the InstanceDataCollectionCollection class.

public bool Contains(string counterName)

Determines whether an instance data collection for the specified counter (identified by one of the indexed InstanceDataCollection objects) exists in the collection.

public void CopyTo(InstanceDataCollection[] counters, int index)

Copies an array of InstanceDataCollection instances to the collection, at the specified index.