<PackageReference Include="System.Security.Permissions" Version="6.0.0-preview.4.21253.7" />

PerformanceCounterPermission

Allows control of code access permissions for PerformanceCounter.

Gets the collection of permission entries for this permissions request.

Initializes a new instance of the PerformanceCounterPermission class.

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

Initializes a new instance of the PerformanceCounterPermission class with the specified access levels, the name of the computer to use, and the category associated with the performance counter.

Initializes a new instance of the PerformanceCounterPermission class with the specified permission access level entries.

Initializes a new instance of the PerformanceCounterPermission class with the specified permission state.