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

System.Diagnostics.CounterCreationData

public class CounterCreationData
Defines the counter type, name, and Help string for a custom counter.
public string CounterHelp { get; set; }

Gets or sets the custom counter's description.

public string CounterName { get; set; }

Gets or sets the name of the custom counter.

public PerformanceCounterType CounterType { get; set; }

Gets or sets the performance counter type of the custom counter.

Initializes a new instance of the CounterCreationData class, to a counter of type NumberOfItems32, and with empty name and help strings.

public CounterCreationData(string counterName, string counterHelp, PerformanceCounterType counterType)

Initializes a new instance of the CounterCreationData class, to a counter of the specified type, using the specified counter name and Help strings.