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

PerformanceCounterPermissionEntry

Defines the smallest unit of a code access security permission that is set for a PerformanceCounter.
public string CategoryName { get; }

Gets the name of the performance counter category (performance object).

public string MachineName { get; }

Gets the name of the server on which the category of the performance counter resides.

Gets the permission access level of the entry.

public PerformanceCounterPermissionEntry(PerformanceCounterPermissionAccess permissionAccess, string machineName, string categoryName)

Initializes a new instance of the PerformanceCounterPermissionEntry class.