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

System.Diagnostics.CounterCreationDataCollection

Provides a strongly typed collection of CounterCreationData objects.
public CounterCreationData this[int index] { get; set; }

Indexes the CounterCreationData collection.

Initializes a new instance of the CounterCreationDataCollection class, with no associated CounterCreationData instances.

Initializes a new instance of the CounterCreationDataCollection class by using the specified collection of CounterCreationData instances.

Initializes a new instance of the CounterCreationDataCollection class by using the specified array of CounterCreationData instances.

public int Add(CounterCreationData value)

Adds an instance of the CounterCreationData class to the collection.

Adds the specified collection of CounterCreationData instances to the collection.

public void AddRange(CounterCreationData[] value)

Adds the specified array of CounterCreationData instances to the collection.

public bool Contains(CounterCreationData value)

Determines whether a CounterCreationData instance exists in the collection.

public void CopyTo(CounterCreationData[] array, int index)

Copies the elements of the CounterCreationData to an array, starting at the specified index of the array.

public int IndexOf(CounterCreationData value)

Returns the index of a CounterCreationData object in the collection.

public void Insert(int index, CounterCreationData value)

Inserts a CounterCreationData object into the collection, at the specified index.

public virtual void Remove(CounterCreationData value)

Removes a CounterCreationData object from the collection.