<PackageReference Include="System.Security.Permissions" Version="5.0.0-preview.2.20160.6" />

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.