<PackageReference Include="System.Security.Permissions" Version="9.0.0-preview.7.24405.7" />

PerformanceCounterPermissionAccess

Defines access levels used by PerformanceCounter permission classes.

The PerformanceCounter can read, write, and create categories.

Browse = 1

The PerformanceCounter can read categories.

The PerformanceCounter can read and write categories.

None = 0

The PerformanceCounter has no permissions.

Read = 1

The PerformanceCounter can read categories.

Write = 2

The PerformanceCounter can write categories.