<PackageReference Include="System.Security.Permissions" Version="11.0.0-preview.1.26104.118" />

System.Diagnostics.PerformanceCounterPermissionAttribute

Allows declarative performance counter permission checks.
public string CategoryName { get; set; }

Gets or sets the name of the performance counter category.

public string MachineName { get; set; }

Gets or sets the computer name for the performance counter.

Gets or sets the access levels used in the permissions request.

Initializes a new instance of the PerformanceCounterPermissionAttribute class.